X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..94187a80bd60baab4b9c4b949ad820d730578123:/sbr/m_popen.c diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 611e9c4a..9a1c1a5e 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -1,5 +1,4 @@ -/* - * m_popen.c -- Interface for a popen() call that redirects the current +/* m_popen.c -- Interface for a popen() call that redirects the current * process standard output to the popen()d process. * * This code is Copyright (c) 2014, by the authors of nmh. See the @@ -9,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 */ @@ -47,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]);