summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-13 23:19:57 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-13 23:19:57 +0200
commit776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8 (patch)
treea35e9fbb8a15928cb89a9c8d7a98bcaab2421934
parentReset window title on terminal reset too. (diff)
downloadst-776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8.tar.gz
st-776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8.zip
Importing the patch of Roberto Vargas to inherit signal handlers.
-rw-r--r--st.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/st.c b/st.c
index fe2b922..c2ee3e2 100644
--- a/st.c
+++ b/st.c
@@ -774,6 +774,13 @@ execsh(void) {
774 unsetenv("LINES"); 774 unsetenv("LINES");
775 unsetenv("TERMCAP"); 775 unsetenv("TERMCAP");
776 776
777 signal(SIGCHLD, SIG_DFL);
778 signal(SIGHUP, SIG_DFL);
779 signal(SIGINT, SIG_DFL);
780 signal(SIGQUIT, SIG_DFL);
781 signal(SIGTERM, SIG_DFL);
782 signal(SIGALRM, SIG_DFL);
783
777 DEFAULT(envshell, SHELL); 784 DEFAULT(envshell, SHELL);
778 putenv("TERM="TNAME); 785 putenv("TERM="TNAME);
779 args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; 786 args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};