mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
manager: fix printing of child process names
This commit is contained in:
parent
80876c20f6
commit
15d5d9d972
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user