X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..1e03ea3338cc5ccd9ddf4feaaacfeda1998689cc:/sbr/m_popen.c diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 17203de8..ac36e6ba 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -6,8 +6,11 @@ * 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 */ static int sd = NOTOK; /* Original standard output */ @@ -46,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]);