commit - 6d0030ba1d9985fc8b8a9a2dc0f0c412c2c678da
commit + 56a9d3151cd30e0b62e13d1469bc2f6b6a24f231
blob - 4ac43e3ddee0f601ea33b3a80f934242683cdc4c
blob + a0576465ae834d0f074a2d8dc1fbbb6ecec3186a
--- gotwebd/sockets.c
+++ gotwebd/sockets.c
void
sockets(struct gotwebd *env, int fd)
{
- struct event sighup, sigpipe, sigusr1, sigchld;
+ struct event sighup, sigusr1, sigchld;
event_init();
signal(SIGPIPE, SIG_IGN);
- signal_set(&sighup, SIGCHLD, sockets_sighdlr, env);
+ signal_set(&sighup, SIGHUP, sockets_sighdlr, env);
signal_add(&sighup, NULL);
- signal_set(&sigpipe, SIGCHLD, sockets_sighdlr, env);
- signal_add(&sigpipe, NULL);
- signal_set(&sigusr1, SIGCHLD, sockets_sighdlr, env);
+ signal_set(&sigusr1, SIGUSR1, sockets_sighdlr, env);
signal_add(&sigusr1, NULL);
signal_set(&sigchld, SIGCHLD, sockets_sighdlr, env);
signal_add(&sigchld, NULL);