X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3f9555fc48a36599d3f9bd6ac68773338886c0b5..1e03ea3338cc5ccd9ddf4feaaacfeda1998689cc:/sbr/m_popen.c diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 1fb0cfb4..ac36e6ba 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -6,8 +6,10 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "arglist.h" +#include "error.h" +#include "h/signals.h" #include "m_popen.h" static int m_pid = NOTOK; /* Process we're waiting for */ @@ -47,7 +49,7 @@ m_popen (char *name, int savestdout) execvp (file, arglist); fprintf (stderr, "unable to exec "); perror (name); - _exit (-1); + _exit(1); default: close (pd[0]);