mirror of
https://salsa.debian.org/debian/knockd
synced 2026-01-07 19:49:16 +00:00
17 lines
418 B
Diff
17 lines
418 B
Diff
Index: repo/src/knockd.c
|
|
===================================================================
|
|
--- repo.orig/src/knockd.c 2016-09-28 21:42:58.417421069 +0200
|
|
+++ repo/src/knockd.c 2016-09-28 21:42:58.413421096 +0200
|
|
@@ -366,8 +366,9 @@
|
|
|
|
void child_exit(int signum)
|
|
{
|
|
- /* child wants to exit, let em die */
|
|
- wait(NULL);
|
|
+ int status;
|
|
+
|
|
+ while ( waitpid( (pid_t)-1, &status, WNOHANG ) > 0 ) continue;
|
|
return;
|
|
}
|
|
|