From: epg <> Date: Tue, 17 Sep 2002 12:45:16 +0000 (+0000) Subject: Use vfork(2) instead of fork(2). X-Git-Url: https://diplodocus.org/git/mdeliver/commitdiff_plain/6ce35b85c32ce7558e926ab6bc3c9c24424b6cac Use vfork(2) instead of fork(2). --- diff --git a/mdeliver.c b/mdeliver.c index 7e61c37..9e21df3 100644 --- a/mdeliver.c +++ b/mdeliver.c @@ -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");