diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-03 17:54:19 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-03 17:54:19 +0200 |
commit | afd790ead33cea06cc36c37d85c1dec0b84b3fe0 (patch) | |
tree | f972d481309834135dcc24e02ef2e766e1e3b052 | |
parent | 8beaa0cac78c6d3b788a47308924ddd486564a23 (diff) |
vfork() -> fork()
-rw-r--r-- | src/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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') { |