Importing the patch of Roberto Vargas to inherit signal handlers.

This commit is contained in:
Christoph Lohmann 2012-09-13 23:19:57 +02:00
parent fe2ba95b3d
commit 776a022e39

7
st.c
View file

@ -774,6 +774,13 @@ execsh(void) {
unsetenv("LINES");
unsetenv("TERMCAP");
signal(SIGCHLD, SIG_DFL);
signal(SIGHUP, SIG_DFL);
signal(SIGINT, SIG_DFL);
signal(SIGQUIT, SIG_DFL);
signal(SIGTERM, SIG_DFL);
signal(SIGALRM, SIG_DFL);
DEFAULT(envshell, SHELL);
putenv("TERM="TNAME);
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};