X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=c2ee3e28b73a28864ff3f485776bf5538bfe29dd;hb=776a022e39a3c8f7c81b35d6b4307ffaa0ae3df8;hp=fe2b9221fe4011e11cddf7a0f3977a7ecc01c2ad;hpb=fe2ba95b3d81127b98a5dc6fa0341a90beabd1a0;p=st.git 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};