9660srv: run 9p service in separate namespace to prevent deadlock

we have to run the 9p service process in its own namespace
otherwise the attach filename might point onto the served
filesystem causing it to deadlock. this happens especially
if 9660srv is used as root filesystem. (cdboot)
This commit is contained in:
cinap_lenrek 2013-01-22 10:35:42 +01:00
parent 361e029541
commit 69e8a53ffe

View file

@ -140,7 +140,7 @@ main(int argc, char **argv)
}
srvfd = pipefd[1];
switch(rfork(RFNOWAIT|RFNOTEG|RFFDG|RFPROC)){
switch(rfork(RFNOWAIT|RFNOTEG|RFFDG|RFPROC|RFNAMEG)){
case -1:
panic(1, "fork");
default: