diff options
-rw-r--r-- | exp_command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exp_command.c b/exp_command.c index b554b18..c055ffd 100644 --- a/exp_command.c +++ b/exp_command.c @@ -1161,7 +1161,7 @@ Exp_SpawnObjCmd( /* if stty finds dev(stderr) != dev(stdout) */ /* save error fd while we're setting up new one */ - errorfd = fcntl(2,F_DUPFD,3); + errorfd = fcntl(2,F_DUPFD_CLOEXEC,3); /* and here is the macro to restore it */ #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);} |