commit 24167b5c0702b2edd7e82b75975849cac5a82e12
Author:     Quentin Rameau <[email protected]>
AuthorDate: Mon Jul 24 00:53:56 2017 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Mon Jul 24 16:49:24 2017 +0200

    Restore default handlers in children

diff --git a/quark.c b/quark.c
index 4821033..9f91f45 100644
--- 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",

Reply via email to