From afd790ead33cea06cc36c37d85c1dec0b84b3fe0 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 3 Jul 2008 17:54:19 +0200 Subject: vfork() -> fork() --- src/util.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/util.c b/src/util.c index 093735d..c5f4515 100644 --- a/src/util.c +++ b/src/util.c @@ -1,4 +1,5 @@ -/* +/* + * * Copyright 2007 Johannes Hofmann * * This software may be used and distributed according to the terms @@ -20,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"); @@ -45,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