git: 9front

Download patch

ref: 9ee8cf6d508c441d6d01091f1023b1d1e86fd66f
parent: 9c85501815ad91034892f5d409f5a34ab2410143
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);
--