Remove vhangup as it was hanging up the wrong tty. Should really
vhangup in the child after it as set its tty.
This commit is contained in:
4
script.c
4
script.c
@@ -470,10 +470,6 @@ script_execv(path, argv)
|
|||||||
}
|
}
|
||||||
term_restore(STDIN_FILENO);
|
term_restore(STDIN_FILENO);
|
||||||
|
|
||||||
#ifdef HAVE_VHANGUP
|
|
||||||
signal(SIGHUP, SIG_IGN);
|
|
||||||
vhangup();
|
|
||||||
#endif
|
|
||||||
if (WIFEXITED(child_status))
|
if (WIFEXITED(child_status))
|
||||||
exit(WEXITSTATUS(child_status));
|
exit(WEXITSTATUS(child_status));
|
||||||
if (WIFSIGNALED(child_status))
|
if (WIFSIGNALED(child_status))
|
||||||
|
Reference in New Issue
Block a user