From: Michael Stapelberg Date: Sun, 28 Nov 2010 13:03:43 +0000 (+0100) Subject: Bugfix: Use setsid() to avoid SIGINT for child processes X-Git-Tag: tree-pr1~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab8400fff9f15da1707c1c57d575713af1427e9e;p=i3%2Fi3 Bugfix: Use setsid() to avoid SIGINT for child processes --- diff --git a/src/util.c b/src/util.c index 75203cfb..673bdb26 100644 --- a/src/util.c +++ b/src/util.c @@ -99,6 +99,7 @@ void start_application(const char *command) { LOG("executing: %s\n", command); if (fork() == 0) { /* Child process */ + setsid(); if (fork() == 0) { /* Stores the path of the shell */ static const char *shell = NULL;