diff options
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c index 5ba490f..af3a8f8 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -576,7 +576,7 @@ static int setup_redirects(struct child_prog *prog, int squirrel[]) if (openfd != redir->fd) { if (squirrel && redir->fd < 3) { squirrel[redir->fd] = dup(redir->fd); - fcntl(squirrel[redir->fd], F_SETFD, FD_CLOEXEC); + close_on_exec_on(squirrel[redir->fd]); } dup2(openfd, redir->fd); close(openfd); |