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 | 776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8 (patch) | |
| tree | a35e9fbb8a15928cb89a9c8d7a98bcaab2421934 /st.c | |
| parent | Reset window title on terminal reset too. (diff) | |
| download | st-776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8.tar.gz st-776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8.zip | |
Importing the patch of Roberto Vargas to inherit signal handlers.
Diffstat (limited to '')
| -rw-r--r-- | st.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -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}; |
