diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-09-13 23:19:57 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-09-13 23:19:57 +0200 |
commit | 184c38c88bb974740958ffc0e84d47a92133c5a3 (patch) | |
tree | a35e9fbb8a15928cb89a9c8d7a98bcaab2421934 | |
parent | 12516e2181fe550e6e04f098fa3a8c4da413e091 (diff) | |
download | st-184c38c88bb974740958ffc0e84d47a92133c5a3.tar.gz st-184c38c88bb974740958ffc0e84d47a92133c5a3.tar.bz2 |
Importing the patch of Roberto Vargas to inherit signal handlers.
-rw-r--r-- | st.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}; |