aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2018-05-27 21:57:28 +0200
committerkoekeishiya <aasvi93@hotmail.com>2018-05-27 21:57:28 +0200
commit7892d89487e410a450de198a7bbdfa535321fdc6 (patch)
treed1e40656b67b4ea465d256a068abd174fab953dc /src
parentd110e8451c00005aa90fb3da617309d9bcf06b94 (diff)
downloadskhd-7892d89487e410a450de198a7bbdfa535321fdc6.tar.gz
skhd-7892d89487e410a450de198a7bbdfa535321fdc6.zip
fix annoying issue; setsid
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);