We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7626e49 commit 9220282Copy full SHA for 9220282
daemon.c
@@ -480,6 +480,8 @@ static int service_loop(int socknum, int *socklist)
480
pfd[i].fd = socklist[i];
481
pfd[i].events = POLLIN;
482
}
483
+
484
+ signal(SIGCHLD, child_handler);
485
486
for (;;) {
487
int i;
@@ -518,8 +520,6 @@ static int serve(int port)
518
520
{
519
521
int socknum, *socklist;
522
- signal(SIGCHLD, child_handler);
-
523
socknum = socksetup(port, &socklist);
524
if (socknum == 0)
525
die("unable to allocate any listen sockets on port %u", port);
0 commit comments