diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-29 19:49:38 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-29 19:49:38 +0200 |
commit | 3e3d8880d139a49b5fb770dce49e64c2442ac8c2 (patch) | |
tree | 65449456970044c77ee584d665a9821d25b1d194 /sys/src/cmd/sshfs.c | |
parent | e44bf536af27853196c0d1d86e0ef41c4cefadf6 (diff) |
sshfs: start sendproc and recvproc in the sane notegroup as the fs process so theadexitsall() works on sshfs: ending.
Diffstat (limited to 'sys/src/cmd/sshfs.c')
-rw-r--r-- | sys/src/cmd/sshfs.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/src/cmd/sshfs.c b/sys/src/cmd/sshfs.c index a44b0dcaf..353bea610 100644 --- a/sys/src/cmd/sshfs.c +++ b/sys/src/cmd/sshfs.c @@ -1177,6 +1177,13 @@ sshfsdestroyreq(Req *r) } void +sshfsstart(Srv *) +{ + proccreate(sendproc, nil, mainstacksize); + proccreate(recvproc, nil, mainstacksize); +} + +void sshfsend(Srv *) { dprint("sshfs: ending\n"); @@ -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); } |