* enable the watcher do differenciate between crash & regular exit, so he can send...
[citadel.git] / citadel / sysdep.c
index 46bdf021a405abb4d2568a674a868714cd9e8f36..4cd22d0d5ca637463b7892c23aae916fc7147156 100644 (file)
@@ -964,7 +964,7 @@ void start_daemon(int unused) {
                if (WIFEXITED(status)) {
 
                        /* Exit code 0 means the watcher should exit */
-                       if (WEXITSTATUS(status) == 0) {
+                       if (WEXITSTATUS(status) == CTDLEXIT_SHUTDOWN) {
                                do_restart = 0;
                        }