ref: db581d2fe62fb320ccc3a30a47d44709ea849196
parent: 0c8543235974026577ab2978bdc9a379314b36d3
author: cinap_lenrek <[email protected]>
date: Sun Jan 6 23:30:19 EST 2013
hjfs: disable shutdown when listening on network connections
--- a/sys/src/cmd/hjfs/9p.c
+++ b/sys/src/cmd/hjfs/9p.c
@@ -137,8 +137,10 @@
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;