aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui-day.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2021-04-04 10:43:26 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2021-04-04 12:15:26 -0400
commit5710a8bd7fc3d5a3e46f108c16199ed7553515f0 (patch)
tree456e0ed7aeff549d0177f02f225821c4edde9b12 /src/ui-day.c
parentf41955e491476dfb844f28f46523d0430d27c88a (diff)
downloadcalcurse-5710a8bd7fc3d5a3e46f108c16199ed7553515f0.tar.gz
calcurse-5710a8bd7fc3d5a3e46f108c16199ed7553515f0.zip
Add parameter to redirect stderr to shell_exec()
Add a function parameter to allows redirecting stderr in addition to stdin and stdout. The parameter will be used with a follow-up change. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/ui-day.c')
-rw-r--r--src/ui-day.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui-day.c b/src/ui-day.c
index ae810ed..1848c2a 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, *arg, arg))) {
+ if ((pid = shell_exec(NULL, &pout, NULL, *arg, arg))) {
fpout = fdopen(pout, "w");
switch (p->type) {
@@ -1088,7 +1088,7 @@ void ui_day_item_pipe(void)
}
fclose(fpout);
- child_wait(NULL, &pout, pid);
+ child_wait(NULL, &pout, NULL, pid);
press_any_key();
}
wins_unprepare_external();