ref: 4dc437c0763268ebf3c77c2a11cafa224173bfdd
parent: 2db3642b8d3b871c6f9d1f4e3204b2f44fc4b79f
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 18 14:23:48 EST 2020
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.
--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -298,6 +298,8 @@
break;
}ARGEND;
+ if(rfork(RFENVG) < 0)
+ sysfatal("rfork: %r");
quotefmtinstall();
notify(catch);
atexit(shutdown);