shithub: riscv

Download patch

ref: f258c3725d81f358242981f7d3b16f80a05a4604
parent: 1fdee02884be86fb76a2c551ab61997f7a8ddef5
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;