Set session ID for fork. Fixes #28
This commit is contained in:
parent
cdc992cc41
commit
be46e8a8bd
1 changed files with 2 additions and 1 deletions
3
main.c
3
main.c
|
@ -81,8 +81,9 @@ void execBlock(int i, const char* button) {
|
|||
|
||||
if (button)
|
||||
setenv("BLOCK_BUTTON", button, 1);
|
||||
setsid();
|
||||
execl("/bin/sh", "sh", "-c", blocks[i].command, (char*)NULL);
|
||||
_exit(1);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue