summary refs log tree commit diff
path: root/src/exec.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-05-06 19:28:56 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2007-05-12 18:01:01 +1000
commit5abe895bd25a9e07b7d98617d145dbf048e44a21 (patch)
tree58f1655ac902437d624976a3a7c0023402e739da /src/exec.c
parent[REDIR] Replace copyfd by savefd and use dup2 elsewhere (diff)
downloaddash-5abe895bd25a9e07b7d98617d145dbf048e44a21.tar.gz
dash-5abe895bd25a9e07b7d98617d145dbf048e44a21.zip
[REDIR] Remove redundant CLOEXEC calls
Now that we're marking file descriptors as CLOEXEC in savefd, we no longer
need to close them on exec or in setinputfd.
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/exec.c b/src/exec.c
index c55683d..8a1f722 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -110,7 +110,6 @@ shellexec(char **argv, const char *path, int idx)
 	char **envp;
 	int exerrno;
 
-	clearredir(1);
 	envp = environment();
 	if (strchr(argv[0], '/') != NULL) {
 		tryexec(argv[0], argv, envp);