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
37 if (auth_child_pid != 0) {37 if (auth_child_pid != 0) {
38 KillPgrp(auth_child_pid);38 KillPgrp(auth_child_pid);
39 }39 }
40 auth_child_pid = 0;
41}40}
42 41
43/*! \brief Return whether the wake-up keypress should be discarded and not be42/*! \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
35 if (saver_child_pid[i] != 0) {35 if (saver_child_pid[i] != 0) {
36 KillPgrp(saver_child_pid[i]);36 KillPgrp(saver_child_pid[i]);
37 }37 }
38 saver_child_pid[i] = 0;
39 }38 }
40}39}
41 40