diff options
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/start_stop_daemon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 459fb77e0..f10572ddf 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -404,9 +404,7 @@ int start_stop_daemon_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
404 | /* DAEMON_DEVNULL_STDIO is superfluous - | 404 | /* DAEMON_DEVNULL_STDIO is superfluous - |
405 | * it's always done by bb_daemonize() */ | 405 | * it's always done by bb_daemonize() */ |
406 | #else | 406 | #else |
407 | pid_t pid = vfork(); | 407 | pid_t pid = xvfork(); |
408 | if (pid < 0) /* error */ | ||
409 | bb_perror_msg_and_die("vfork"); | ||
410 | if (pid != 0) { | 408 | if (pid != 0) { |
411 | /* parent */ | 409 | /* parent */ |
412 | /* why _exit? the child may have changed the stack, | 410 | /* why _exit? the child may have changed the stack, |