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;
|
break;
|
||||||
}ARGEND;
|
}ARGEND;
|
||||||
|
|
||||||
|
if(rfork(RFENVG) < 0)
|
||||||
|
sysfatal("rfork: %r");
|
||||||
quotefmtinstall();
|
quotefmtinstall();
|
||||||
notify(catch);
|
notify(catch);
|
||||||
atexit(shutdown);
|
atexit(shutdown);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue