diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 108bbf4..0201d26 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -394,7 +394,7 @@ static void handle_sigchld(int sig) /* Looping: more than one child may have exited */ while (1) { - pid = waitpid(-1, NULL, WNOHANG); + pid = wait_any_nohang(NULL); if (pid <= 0) break; ts = sessions; |