mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
Set session ID for fork. Fixes #28
This commit is contained in:
parent
cdc992cc41
commit
be46e8a8bd
3
main.c
3
main.c
@ -81,8 +81,9 @@ void execBlock(int i, const char* button) {
|
|||||||
|
|
||||||
if (button)
|
if (button)
|
||||||
setenv("BLOCK_BUTTON", button, 1);
|
setenv("BLOCK_BUTTON", button, 1);
|
||||||
|
setsid();
|
||||||
execl("/bin/sh", "sh", "-c", blocks[i].command, (char*)NULL);
|
execl("/bin/sh", "sh", "-c", blocks[i].command, (char*)NULL);
|
||||||
_exit(1);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user