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

This commit is contained in:
cinap_lenrek 2020-03-08 03:25:35 +01:00
parent 7aaa481f9f
commit cea9e2267a

View file

@ -736,6 +736,12 @@ fsread(Req *r)
}
}
static void
fsstart(Srv*)
{
proccreate(cpuproc, nil, 16*1024);
}
static void
fsend(Srv*)
{
@ -743,6 +749,7 @@ fsend(Srv*)
}
static Srv fs = {
.start= fsstart,
.attach= fsattach,
.walk1= fswalk1,
.open= fsopen,
@ -791,6 +798,5 @@ threadmain(int argc, char *argv[])
reqchan = chancreate(sizeof(Req*), 8);
flushchan = chancreate(sizeof(Req*), 8);
procrfork(cpuproc, nil, 16*1024, RFNAMEG|RFNOTEG);
threadpostmountsrv(&fs, srv, mnt, MBEFORE);
}