From 82604e973085f91f1b99cacea08963d0d1468084 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 1 Jul 2008 15:59:42 +0000 Subject: revert last two commits. vfork cannot be used in subroutine, it trashes stack on return --- util-linux/script.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util-linux/script.c') diff --git a/util-linux/script.c b/util-linux/script.c index a6c1ab88a..e70294e6c 100644 --- a/util-linux/script.c +++ b/util-linux/script.c @@ -87,7 +87,10 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv) /* TODO: SIGWINCH? pass window size changes down to slave? */ - child_pid = xvfork(); + child_pid = vfork(); + if (child_pid < 0) { + bb_perror_msg_and_die("vfork"); + } if (child_pid) { /* parent */ -- cgit v1.2.3