From f14d7c7bb083ae4f79eba4df066d41359dff7a26 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 3 Jul 2008 17:53:34 +0200 Subject: vfork() -> fork() --- src/util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/util.c b/src/util.c index e7b78f6..c5f4515 100644 --- a/src/util.c +++ b/src/util.c @@ -1,9 +1,11 @@ -/* - * Copyright 2006 Johannes Hofmann +/* + * + * Copyright 2007 Johannes Hofmann * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ + #include #include #include @@ -19,7 +21,7 @@ pexecvp(const char *file, char *const argv[], pid_t *pid, char *type) { return NULL; } - *pid = vfork(); + *pid = fork(); if (*pid == -1) { perror("vfork"); @@ -44,7 +46,7 @@ pexecvp(const char *file, char *const argv[], pid_t *pid, char *type) { } execvp(file, argv); - _exit(127); + exit(127); } else { /* parent */ if (*type == 'r') { -- cgit v1.2.3