diff options
Diffstat (limited to 'src/lib9p')
-rw-r--r-- | src/lib9p/tpost.c | 5 |
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); } |