quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 24167b5c0702b2edd7e82b75975849cac5a82e12
parent 1c5f45c090f0204611862d68e4511b46c39b9618
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 24 Jul 2017 00:53:56 +0200

Restore default handlers in children

Diffstat:
Mquark.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/quark.c b/quark.c @@ -1057,6 +1057,9 @@ main(int argc, char *argv[]) fprintf(stderr, "%s: fork: %s\n", argv0, strerror(errno)); break; case 0: + /* restore default handlers */ + handlesignals(SIG_DFL); + /* reap children automatically */ if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) { die("%s: signal: Failed to set SIG_IGN on SIGCHLD\n",