(spawn_prog): Bugfix
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -478,6 +478,7 @@ spawn_prog (const char *cmdline, int *pstatus, struct run_closure *rp) | ... | @@ -478,6 +478,7 @@ spawn_prog (const char *cmdline, int *pstatus, struct run_closure *rp) |
478 | for (i = getmaxfd (); i > 2; i--) | 478 | for (i = getmaxfd (); i > 2; i--) |
479 | close (i); | 479 | close (i); |
480 | execvp (argv[0], argv); | 480 | execvp (argv[0], argv); |
481 | exit (127); | ||
481 | } | 482 | } |
482 | 483 | ||
483 | free (s); | 484 | free (s); | ... | ... |
-
Please register or sign in to post a comment