git: 9front

Download patch

ref: c4fab6449631f1c039459c59ce3054ac8a20ee8c
parent: 17b132e378a56b1b15f85d590aa4151f7d3b5594
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon May 23 17:43:51 EDT 2011

rio: dont leak the /dev/consctl and /dev/kbd filedescriptors into windows

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -1258,7 +1258,7 @@
 	char *e;
 
 	c = chancreate(sizeof(char*), 16);
-	proccreate(kbdproc, c, STACK);
+	procrfork(kbdproc, c, STACK, RFFDG);
 	if(e = recvp(c)){
 		chanfree(c);
 		c = nil;
--