ref: 4619be47a99eaebc6584daafa36df7d72174f9f0
parent: b177ddf6bb174b8a662711f2023b0b79cf1cc353
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Aug 29 15:49:38 EDT 2017
sshfs: start sendproc and recvproc in the sane notegroup as the fs process so theadexitsall() works on sshfs: ending.
--- a/sys/src/cmd/sshfs.c
+++ b/sys/src/cmd/sshfs.c
@@ -1177,6 +1177,13 @@
}
void
+sshfsstart(Srv *)
+{+ proccreate(sendproc, nil, mainstacksize);
+ proccreate(recvproc, nil, mainstacksize);
+}
+
+void
sshfsend(Srv *)
{ dprint("sshfs: ending\n");@@ -1184,6 +1191,7 @@
}
Srv sshfssrv = {+ .start sshfsstart,
.attach sshfsattach,
.walk sshfswalk,
.open submitreq,
@@ -1195,7 +1203,7 @@
.remove submitreq,
.destroyfid sshfsdestroyfid,
.destroyreq sshfsdestroyreq,
- .end sshfsend
+ .end sshfsend,
};
char *
@@ -1368,7 +1376,5 @@
passwdparse(uidtab, readfile(uidfile));
passwdparse(gidtab, readfile(gidfile));
- procrfork(sendproc, 0, mainstacksize, RFNOTEG);
- procrfork(recvproc, 0, mainstacksize, RFNOTEG);
threadpostmountsrv(&sshfssrv, svc, mtpt, MCREATE | mflag);
}
--
⑨