]> err.no Git - systemd/commitdiff
manager: fix printing of child process names
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 00:10:17 +0000 (02:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 00:10:17 +0000 (02:10 +0200)
manager.c

index 7d288bde60300bf21ef5c0e6d3d411735447b827..36733b0eb5be91e0509356074dfa9923d0054d5b 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -1477,7 +1477,7 @@ static int manager_dispatch_sigchld(Manager *m) {
                 if (si.si_pid <= 0)
                         break;
 
-                if (si.si_code == CLD_EXITED && si.si_code == CLD_KILLED && si.si_code == CLD_DUMPED) {
+                if (si.si_code == CLD_EXITED || si.si_code == CLD_KILLED || si.si_code == CLD_DUMPED) {
                         char *name = NULL;
 
                         get_process_name(si.si_pid, &name);