diff options
Diffstat (limited to 'src')
-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') { |