Commit 6aa04988 6aa0498854b6e064db8ee6de6c572029a52a4710 by Sergey Poznyakoff

(spawn_prog): Bugfix

1 parent 727b3c75
...@@ -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);
......