summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:53:34 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:53:34 +0200
commitf14d7c7bb083ae4f79eba4df066d41359dff7a26 (patch)
treea7b69a9afe6cc6a775cc49af2e437b87e66d0b0c
parentd8e56b177be463551ebb4f90b66aa728d68d2f97 (diff)
vfork() -> fork()
-rw-r--r--src/util.c10
1 files 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 <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') {