X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..6fd1d18f:/sbr/m_popen.c?ds=sidebyside diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 17203de8..9a1c1a5e 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -8,6 +8,7 @@ #include #include +#include "m_popen.h" static int m_pid = NOTOK; /* Process we're waiting for */ static int sd = NOTOK; /* Original standard output */ @@ -46,7 +47,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]);