From 56dc04c55fa6b1e54b7fb5e8743e79cd6f3e2dbf Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 4 Jul 2008 12:24:14 -0400 Subject: lib9p: add Srv.foreground flag --- src/lib9p/tpost.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib9p') 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); } -- cgit v1.2.3