shithub: riscv

Download patch

ref: cea9e2267a70d17173c2b0fcdc421ee11b66ee79
parent: 7aaa481f9f89f393e94e311d3b62577cfb1cd8d9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 7 22:25:35 EST 2020

aux/realemu: run cpuproc in same fd group as fileserver

--- a/sys/src/cmd/aux/realemu/main.c
+++ b/sys/src/cmd/aux/realemu/main.c
@@ -737,6 +737,12 @@
 }
 
 static void
+fsstart(Srv*)
+{
+	proccreate(cpuproc, nil, 16*1024);
+}
+
+static void
 fsend(Srv*)
 {
 	threadexitsall(nil);
@@ -743,6 +749,7 @@
 }
 
 static Srv fs = {
+	.start=			fsstart,
 	.attach=		fsattach,
 	.walk1=			fswalk1,
 	.open=			fsopen,
@@ -791,6 +798,5 @@
 
 	reqchan = chancreate(sizeof(Req*), 8);
 	flushchan = chancreate(sizeof(Req*), 8);
-	procrfork(cpuproc, nil, 16*1024, RFNAMEG|RFNOTEG);
 	threadpostmountsrv(&fs, srv, mnt, MBEFORE);
 }