aboutsummaryrefslogtreecommitdiff
path: root/src/lib9p
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-04 12:24:14 -0400
committerRuss Cox <rsc@swtch.com>2008-07-04 12:24:14 -0400
commit56dc04c55fa6b1e54b7fb5e8743e79cd6f3e2dbf (patch)
tree39f5e21480456a05a7d14e79ca3b3253cace3fbb /src/lib9p
parent0529411caa88bb5fbdd65d460c0b4042742e23de (diff)
downloadplan9port-56dc04c55fa6b1e54b7fb5e8743e79cd6f3e2dbf.tar.gz
plan9port-56dc04c55fa6b1e54b7fb5e8743e79cd6f3e2dbf.tar.bz2
plan9port-56dc04c55fa6b1e54b7fb5e8743e79cd6f3e2dbf.zip
lib9p: add Srv.foreground flag
Diffstat (limited to 'src/lib9p')
-rw-r--r--src/lib9p/tpost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib9p/tpost.c b/src/lib9p/tpost.c
index d6691fec..17848551 100644
--- a/src/lib9p/tpost.c
+++ b/src/lib9p/tpost.c
@@ -26,5 +26,8 @@ threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
sysfatal("post9pservice %s: %r", name);
}else if(!s->nopipe)
sysfatal("no one to serve");
- proccreate(launchsrv, s, 32*1024);
+ if(s->foreground)
+ srv(s);
+ else
+ proccreate(launchsrv, s, 32*1024);
}