summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:54:19 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-03 17:54:19 +0200
commitafd790ead33cea06cc36c37d85c1dec0b84b3fe0 (patch)
treef972d481309834135dcc24e02ef2e766e1e3b052 /src
parent8beaa0cac78c6d3b788a47308924ddd486564a23 (diff)
vfork() -> fork()
Diffstat (limited to 'src')
-rw-r--r--src/util.c7
1 files changed, 4 insertions, 3 deletions
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 <Johannes.Hofmann@gmx.de>
*
* 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') {