]> Sergey Matveev's repositories - st.git/commitdiff
Importing the patch of Roberto Vargas to inherit signal handlers.
authorChristoph Lohmann <20h@r-36.net>
Thu, 13 Sep 2012 21:19:57 +0000 (23:19 +0200)
committerChristoph Lohmann <20h@r-36.net>
Thu, 13 Sep 2012 21:19:57 +0000 (23:19 +0200)
st.c

diff --git a/st.c b/st.c
index fe2b9221fe4011e11cddf7a0f3977a7ecc01c2ad..c2ee3e28b73a28864ff3f485776bf5538bfe29dd 100644 (file)
--- 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};