History

Don't set PIDs to 0 right after killing.

That way they will still get waitpid'd on and won't stay zombies.

Rudolf Polzer committed 7 years ago

Commit dfd3ca71 parent 4efaae02 files · +0 −2Browse files

Unified · Split

2 files
  1. auth_child.c +0 −1
  2. saver_child.c +0 −1
auth_child.c+0−1
@@ -37,7 +37,6 @@ void KillAuthChildSigHandler(void) { · 36 unmodified lines
3737 if (auth_child_pid != 0) {
3838 KillPgrp(auth_child_pid);
3939 }
40− auth_child_pid = 0;
4140 }
4241
4342 /*! \brief Return whether the wake-up keypress should be discarded and not be
saver_child.c+0−1
@@ -35,7 +35,6 @@ void KillAllSaverChildrenSigHandler(void) { · 34 unmodified lines
3535 if (saver_child_pid[i] != 0) {
3636 KillPgrp(saver_child_pid[i]);
3737 }
38− saver_child_pid[i] = 0;
3938 }
4039 }
4140