[hackers] [quark] Restore default handlers in children || Quentin Rameau

From: <git_AT_suckless.org>
Date: Mon, 24 Jul 2017 16:49:37 +0200 (CEST)

commit 24167b5c0702b2edd7e82b75975849cac5a82e12
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Jul 24 00:53:56 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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",
Received on Mon Jul 24 2017 - 16:49:37 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 24 2017 - 17:03:44 CEST