tImporting the patch of Roberto Vargas to inherit signal handlers. - st - [fork… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8 | |
parent fe2ba95b3d81127b98a5dc6fa0341a90beabd1a0 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Thu, 13 Sep 2012 23:19:57 +0200 | |
Importing the patch of Roberto Vargas to inherit signal handlers. | |
Diffstat: | |
M st.c | 7 +++++++ | |
1 file changed, 7 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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}; |