aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hotkey.c1
1 files changed, 1 insertions, 0 deletions
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);