Bugfix: Use setsid() to avoid SIGINT for child processes

next
Michael Stapelberg 2010-11-28 14:03:43 +01:00
parent 02b786509b
commit ab8400fff9
1 changed files with 1 additions and 0 deletions

View File

@ -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;