From: Christoph Lohmann <20h@r-36.net> Date: Thu, 13 Sep 2012 21:19:57 +0000 (+0200) Subject: Importing the patch of Roberto Vargas to inherit signal handlers. X-Git-Tag: 0.3~76 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=184c38c88bb974740958ffc0e84d47a92133c5a3;p=st.git Importing the patch of Roberto Vargas to inherit signal handlers. --- diff --git a/st.c b/st.c index fe2b922..c2ee3e2 100644 --- a/st.c +++ b/st.c @@ -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};