vt: rfork environment varibles (thanks fshahriar)
vt sets several environment variables ($TERM, $COLS, $LINES) after exiting. This change rforks the environment so that this detritus doesn't get left behind.
This commit is contained in:
parent
2db3642b8d
commit
4dc437c076
1 changed files with 2 additions and 0 deletions
|
@ -298,6 +298,8 @@ threadmain(int argc, char **argv)
|
|||
break;
|
||||
}ARGEND;
|
||||
|
||||
if(rfork(RFENVG) < 0)
|
||||
sysfatal("rfork: %r");
|
||||
quotefmtinstall();
|
||||
notify(catch);
|
||||
atexit(shutdown);
|
||||
|
|
Loading…
Reference in a new issue