summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-01-22 10:35:42 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2013-01-22 10:35:42 +0100
commit69e8a53ffe6c4d6032ba9425c89ac8b564aaf43b (patch)
tree87c320ef47e4bbb673aad28cd97f61b3ce87ff30
parent361e0295412093487ecf430d4bc3e392914bce9c (diff)
downloadplan9front-69e8a53ffe6c4d6032ba9425c89ac8b564aaf43b.tar.xz
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)
-rw-r--r--sys/src/cmd/9660srv/main.c2
1 files changed, 1 insertions, 1 deletions
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: