diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2021-04-04 11:53:53 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2021-04-04 12:15:31 -0400 |
commit | 5398f3a24e988da4836f78fba62acf2ead1030b0 (patch) | |
tree | a580b9b1ad611eaab723c8b62172bbe801578a1a /src/ui-day.c | |
parent | 193ad3415a0e76bf046bfcc3f03dd65742f18589 (diff) | |
download | calcurse-5398f3a24e988da4836f78fba62acf2ead1030b0.tar.gz calcurse-5398f3a24e988da4836f78fba62acf2ead1030b0.zip |
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>
Diffstat (limited to 'src/ui-day.c')
-rw-r--r-- | src/ui-day.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui-day.c b/src/ui-day.c index 1848c2a..0bd82bb 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -1067,7 +1067,7 @@ void ui_day_item_pipe(void) return; wins_prepare_external(); - if ((pid = shell_exec(NULL, &pout, NULL, *arg, arg))) { + if ((pid = shell_exec(NULL, &pout, NULL, 0, *arg, arg))) { fpout = fdopen(pout, "w"); switch (p->type) { |