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

This commit is contained in:
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); LOG("executing: %s\n", command);
if (fork() == 0) { if (fork() == 0) {
/* Child process */ /* Child process */
setsid();
if (fork() == 0) { if (fork() == 0) {
/* Stores the path of the shell */ /* Stores the path of the shell */
static const char *shell = NULL; static const char *shell = NULL;