Bugfix: Use setsid() to avoid SIGINT for child processes
This commit is contained in:
parent
02b786509b
commit
ab8400fff9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue