]> diplodocus.org Git - mdeliver/commitdiff
Use vfork(2) instead of fork(2).
authorepg <>
Tue, 17 Sep 2002 12:45:16 +0000 (12:45 +0000)
committerepg <>
Tue, 17 Sep 2002 12:45:16 +0000 (12:45 +0000)
mdeliver.c

index 7e61c37..9e21df3 100644 (file)
@@ -260,7 +260,7 @@ run_processor(char *home, char *newfn)
     int olderrno;
     int fd;
 
-    if ((pid = fork()) > 0) {
+    if ((pid = vfork()) > 0) {
         return;
     } else if (pid == 0) {
         snprintf(command, PATH_MAX, "%s/%s", home, ".mdeliver-processor");