Call setsid() for hook/notification commands
We do not want hook or notification commands to interact with the terminal in any way. Create a new session for them. Addresses GitHub issue #326. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
@@ -221,7 +221,7 @@ unsigned notify_launch_cmd(void)
|
||||
|
||||
notify_app.state |= APOINT_NOTIFIED;
|
||||
|
||||
if ((pid = shell_exec(&pin, &pout, &perr, *arg, arg))) {
|
||||
if ((pid = shell_exec(&pin, &pout, &perr, 1, *arg, arg))) {
|
||||
close(pin);
|
||||
close(pout);
|
||||
close(perr);
|
||||
|
||||
Reference in New Issue
Block a user