From 7892d89487e410a450de198a7bbdfa535321fdc6 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 27 May 2018 21:57:28 +0200 Subject: fix annoying issue; setsid --- src/hotkey.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/hotkey.c b/src/hotkey.c index a37e27c..0677ae9 100644 --- a/src/hotkey.c +++ b/src/hotkey.c @@ -102,6 +102,7 @@ fork_and_exec(char *command) int cpid = fork(); if (cpid == 0) { + setsid(); char *exec[] = { shell, arg, command, NULL}; int status_code = execvp(exec[0], exec); exit(status_code); -- cgit v1.2.3