projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* enable the watcher do differenciate between crash & regular exit, so he can send...
[citadel.git]
/
citadel
/
citserver.c
diff --git
a/citadel/citserver.c
b/citadel/citserver.c
index 94a5894f3942aaf35a4e17a1f1d5e691bc98be80..4e65fd6da1cbaf51b376e3c477f1c41f1eee530e 100644
(file)
--- a/
citadel/citserver.c
+++ b/
citadel/citserver.c
@@
-228,6
+228,8
@@
void master_cleanup(int exitcode) {
if (restart_server != 0)
exit(1);
+ if ((running_as_daemon != 0) && (exitcode == 0))
+ exitcode = CTDLEXIT_SHUTDOWN;
exit(exitcode);
}