revert last two commits. vfork cannot be used in subroutine,
it trashes stack on return
This commit is contained in:
parent
b111917972
commit
82604e9730
15 changed files with 55 additions and 50 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue