diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2021-04-04 10:43:26 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2021-04-04 12:15:26 -0400 |
commit | 5710a8bd7fc3d5a3e46f108c16199ed7553515f0 (patch) | |
tree | 456e0ed7aeff549d0177f02f225821c4edde9b12 /src/wins.c | |
parent | f41955e491476dfb844f28f46523d0430d27c88a (diff) | |
download | calcurse-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/wins.c')
-rw-r--r-- | src/wins.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -624,8 +624,8 @@ void wins_launch_external(const char *arg[]) int pid; wins_prepare_external(); - if ((pid = shell_exec(NULL, NULL, *arg, arg))) - child_wait(NULL, NULL, pid); + if ((pid = shell_exec(NULL, NULL, NULL, *arg, arg))) + child_wait(NULL, NULL, NULL, pid); wins_unprepare_external(); } |