diff options
author | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-30 11:01:57 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-30 11:01:57 -0700 |
commit | 9220282a9c6fae98d326bd10e4f427f1692b71ed (patch) | |
tree | 10c973d7d1d53bb7cb640c9ed3ff06c03ec6ba77 /daemon.c | |
parent | 7626e49e9f04ac386965d16ae11e130e20ebd518 (diff) | |
download | git-9220282a9c6fae98d326bd10e4f427f1692b71ed.tar.gz git-9220282a9c6fae98d326bd10e4f427f1692b71ed.tar.xz |
Move signal setting into service_loop()
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -480,6 +480,8 @@ static int service_loop(int socknum, int *socklist) pfd[i].fd = socklist[i]; pfd[i].events = POLLIN; } + + signal(SIGCHLD, child_handler); for (;;) { int i; @@ -518,8 +520,6 @@ static int serve(int port) { int socknum, *socklist; - signal(SIGCHLD, child_handler); - socknum = socksetup(port, &socklist); if (socknum == 0) die("unable to allocate any listen sockets on port %u", port); |