mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Importing the patch of Roberto Vargas to inherit signal handlers.
This commit is contained in:
parent
fe2ba95b3d
commit
776a022e39
1 changed files with 7 additions and 0 deletions
7
st.c
7
st.c
|
@ -774,6 +774,13 @@ execsh(void) {
|
||||||
unsetenv("LINES");
|
unsetenv("LINES");
|
||||||
unsetenv("TERMCAP");
|
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);
|
DEFAULT(envshell, SHELL);
|
||||||
putenv("TERM="TNAME);
|
putenv("TERM="TNAME);
|
||||||
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
|
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
|
||||||
|
|
Loading…
Reference in a new issue