From 69e8a53ffe6c4d6032ba9425c89ac8b564aaf43b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 22 Jan 2013 10:35:42 +0100 Subject: [PATCH] 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) --- sys/src/cmd/9660srv/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/9660srv/main.c b/sys/src/cmd/9660srv/main.c index 9d9541f4f..94e2a5d8d 100644 --- a/sys/src/cmd/9660srv/main.c +++ b/sys/src/cmd/9660srv/main.c @@ -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: