From 5398f3a24e988da4836f78fba62acf2ead1030b0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 4 Apr 2021 11:53:53 -0400 Subject: 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 --- src/ui-todo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui-todo.c') diff --git a/src/ui-todo.c b/src/ui-todo.c index 2c9bcb0..cad89fd 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -158,7 +158,7 @@ void ui_todo_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"); todo_write(item, fpout); fclose(fpout); -- cgit v1.2.3-54-g00ecf