shithub: riscv

Download patch

ref: 6ed716eab605e4b374e7d456cc6b3ed586c9f13b
parent: 3e3d8880d139a49b5fb770dce49e64c2442ac8c2
author: cinap_lenrek <[email protected]>
date: Tue Aug 29 17:22:31 EDT 2017

sshfs: fork ssh in its own namespace so it wont keep the mountpoint open

--- a/sys/src/cmd/sshfs.c
+++ b/sys/src/cmd/sshfs.c
@@ -1365,7 +1365,7 @@
 		}
 		pipe(pfd);
 		rdfd = wrfd = pfd[0];
-		procrfork(startssh, nil, mainstacksize, RFFDG|RFNOTEG);
+		procrfork(startssh, nil, mainstacksize, RFFDG|RFNOTEG|RFNAMEG);
 		close(pfd[1]);
 	}