lib9p: add Srv.foreground flag
This commit is contained in:
parent
0529411caa
commit
56dc04c55f
2 changed files with 5 additions and 1 deletions
|
|
@ -205,6 +205,7 @@ struct Srv {
|
|||
int srvfd;
|
||||
int leavefdsopen; /* magic for acme win */
|
||||
int dotu;
|
||||
int foreground; /* run in foreground */
|
||||
|
||||
/* below is implementation-specific; don't use */
|
||||
Fidpool* fpool;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
if(s->foreground)
|
||||
srv(s);
|
||||
else
|
||||
proccreate(launchsrv, s, 32*1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue