summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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') {