aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/st.c b/st.c
index fe2b922..c2ee3e2 100644
--- a/st.c
+++ b/st.c
@@ -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};