diff options
-rw-r--r-- | lash.c | 1 | ||||
-rw-r--r-- | sh.c | 1 | ||||
-rw-r--r-- | shell/lash.c | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -300,6 +300,7 @@ static int builtin_exec(struct child_prog *child) if (child->argv[1] == NULL) return EXIT_SUCCESS; /* Really? */ child->argv++; + close_all(); pseudo_exec(child); /* never returns */ } @@ -300,6 +300,7 @@ static int builtin_exec(struct child_prog *child) if (child->argv[1] == NULL) return EXIT_SUCCESS; /* Really? */ child->argv++; + close_all(); pseudo_exec(child); /* never returns */ } diff --git a/shell/lash.c b/shell/lash.c index 077cb11..57d969e 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -300,6 +300,7 @@ static int builtin_exec(struct child_prog *child) if (child->argv[1] == NULL) return EXIT_SUCCESS; /* Really? */ child->argv++; + close_all(); pseudo_exec(child); /* never returns */ } |