sshfs: start sendproc and recvproc in the sane notegroup as the fs process so theadexitsall() works on sshfs: ending.

This commit is contained in:
cinap_lenrek 2017-08-29 19:49:38 +02:00
parent e44bf536af
commit 3e3d8880d1

View file

@ -1176,6 +1176,13 @@ sshfsdestroyreq(Req *r)
free(r->aux);
}
void
sshfsstart(Srv *)
{
proccreate(sendproc, nil, mainstacksize);
proccreate(recvproc, nil, mainstacksize);
}
void
sshfsend(Srv *)
{
@ -1184,6 +1191,7 @@ sshfsend(Srv *)
}
Srv sshfssrv = {
.start sshfsstart,
.attach sshfsattach,
.walk sshfswalk,
.open submitreq,
@ -1195,7 +1203,7 @@ Srv sshfssrv = {
.remove submitreq,
.destroyfid sshfsdestroyfid,
.destroyreq sshfsdestroyreq,
.end sshfsend
.end sshfsend,
};
char *
@ -1368,7 +1376,5 @@ threadmain(int argc, char **argv)
passwdparse(uidtab, readfile(uidfile));
passwdparse(gidtab, readfile(gidfile));
procrfork(sendproc, 0, mainstacksize, RFNOTEG);
procrfork(recvproc, 0, mainstacksize, RFNOTEG);
threadpostmountsrv(&sshfssrv, svc, mtpt, MCREATE | mflag);
}