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>
This commit is contained in:
@@ -158,11 +158,11 @@ void ui_todo_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");
|
||||
todo_write(item, fpout);
|
||||
fclose(fpout);
|
||||
child_wait(NULL, &pout, pid);
|
||||
child_wait(NULL, &pout, NULL, pid);
|
||||
press_any_key();
|
||||
}
|
||||
wins_unprepare_external();
|
||||
|
||||
Reference in New Issue
Block a user