ref: b72af6a27d5e183dd6a1ac69dc495c044c6af017
parent: 153fcabb00c725ffd604828111752b4e65725787
author: cinap_lenrek <[email protected]>
date: Tue May 26 17:37:25 EDT 2020
sshnet: prevent ssh process from keeping the mount alive
--- a/sys/src/cmd/sshnet.c
+++ b/sys/src/cmd/sshnet.c
@@ -1376,10 +1376,10 @@
if(pipe(pfd) < 0)
sysfatal("pipe: %r");
sshfd = pfd[0];
- procrfork(startssh, nil, 8*1024, RFFDG|RFNOTEG);
+ procrfork(startssh, nil, 8*1024, RFFDG|RFNOTEG|RFNAMEG);
close(pfd[1]);
- procrfork(sshreadproc, nil, 8*1024, RFFDG|RFNOTEG);
+ procrfork(sshreadproc, nil, 8*1024, RFFDG|RFNOTEG|RFNAMEG);
sendmsg(pack(nil, "bsuuu", MSG_CHANNEL_OPEN,
"session", 7,