summaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-01 15:59:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-01 15:59:42 +0000
commit82604e973085f91f1b99cacea08963d0d1468084 (patch)
tree2de05bb2a6943ca6be0cc46f36e5fb07099aef40 /debianutils
parentb111917972c1398ef96ef2d388c6c4ba57a8e9f7 (diff)
downloadbusybox-w32-82604e973085f91f1b99cacea08963d0d1468084.tar.gz
busybox-w32-82604e973085f91f1b99cacea08963d0d1468084.tar.bz2
busybox-w32-82604e973085f91f1b99cacea08963d0d1468084.zip
revert last two commits. vfork cannot be used in subroutine,
it trashes stack on return
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/start_stop_daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index f10572ddf..459fb77e0 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -404,7 +404,9 @@ 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 = xvfork(); 407 pid_t pid = vfork();
408 if (pid < 0) /* error */
409 bb_perror_msg_and_die("vfork");
408 if (pid != 0) { 410 if (pid != 0) {
409 /* parent */ 411 /* parent */
410 /* why _exit? the child may have changed the stack, 412 /* why _exit? the child may have changed the stack,