ref: 3e3d8880d139a49b5fb770dce49e64c2442ac8c2
parent: e44bf536af27853196c0d1d86e0ef41c4cefadf6
author: cinap_lenrek <[email protected]>
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);
}