diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-05-27 21:57:28 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-05-27 21:57:28 +0200 |
commit | 7892d89487e410a450de198a7bbdfa535321fdc6 (patch) | |
tree | d1e40656b67b4ea465d256a068abd174fab953dc /src/hotkey.c | |
parent | d110e8451c00005aa90fb3da617309d9bcf06b94 (diff) | |
download | skhd-7892d89487e410a450de198a7bbdfa535321fdc6.tar.gz skhd-7892d89487e410a450de198a7bbdfa535321fdc6.zip |
fix annoying issue; setsid
Diffstat (limited to 'src/hotkey.c')
-rw-r--r-- | src/hotkey.c | 1 |
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); |