]> diplodocus.org Git - nmh/blobdiff - sbr/m_popen.c
showfile.c: Move interface to own file.
[nmh] / sbr / m_popen.c
index 1fb0cfb4429ac48ce519ea26166c5558291961d2..ac36e6ba5877e9d45e6ec37fdaa9b7e23a75cbf7 100644 (file)
@@ -6,8 +6,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/signals.h>
+#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]);