diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-03 17:53:34 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-03 17:53:34 +0200 |
commit | f14d7c7bb083ae4f79eba4df066d41359dff7a26 (patch) | |
tree | a7b69a9afe6cc6a775cc49af2e437b87e66d0b0c | |
parent | d8e56b177be463551ebb4f90b66aa728d68d2f97 (diff) |
vfork() -> fork()
-rw-r--r-- | src/util.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,9 +1,11 @@ -/* - * Copyright 2006 Johannes Hofmann <Johannes.Hofmann@gmx.de> +/* + * + * Copyright 2007 Johannes Hofmann <Johannes.Hofmann@gmx.de> * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ + #include <stdlib.h> #include <stdio.h> #include <unistd.h> @@ -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') { |