diff options
-rw-r--r-- | src/progman.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/progman.c b/src/progman.c index 0f48b37..d59b7b7 100644 --- a/src/progman.c +++ b/src/progman.c @@ -538,6 +538,10 @@ progman_start(int type, listener_t *lp, struct grecs_locus *loc, if (pid) { /* master */ + if (options & OPT_STDERR) + close(redir_fd[REDIR_ERR]); + if (options & OPT_STDOUT) + close(redir_fd[REDIR_OUT]); process_register(lp, type, timeout, pid, redir_pid); wordsplit_free(&ws); return 0; |