clint: check env functions

This commit is contained in:
Justin M. Keyes
2019-02-26 02:43:06 +01:00
parent 89515304e4
commit 900e96781f
2 changed files with 40 additions and 8 deletions

View File

@@ -157,11 +157,11 @@ static void init_child(PtyProcess *ptyproc)
// New session/process-group. #6530
setsid();
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");
unsetenv("COLORTERM");
unsetenv("COLORFGBG");
os_unsetenv("COLUMNS");
os_unsetenv("LINES");
os_unsetenv("TERMCAP");
os_unsetenv("COLORTERM");
os_unsetenv("COLORFGBG");
signal(SIGCHLD, SIG_DFL);
signal(SIGHUP, SIG_DFL);