summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/hjfs/9p.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/9p.c b/sys/src/cmd/hjfs/9p.c
index a980b1f48..ac3535740 100644
--- a/sys/src/cmd/hjfs/9p.c
+++ b/sys/src/cmd/hjfs/9p.c
@@ -137,8 +137,10 @@ static Srv mysrv = {
void
start9p(char *service, char **nets, int stdio)
{
- while(nets && *nets)
+ while(nets && *nets){
+ mysrv.end = nil; /* disable shutdown */
threadlistensrv(&mysrv, *nets++);
+ }
if(stdio){
mysrv.infd = 1;
mysrv.outfd = 1;