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

This commit is contained in:
cinap_lenrek 2017-08-29 21:22:31 +02:00
parent 3e3d8880d1
commit 6ed716eab6

View file

@ -1365,7 +1365,7 @@ threadmain(int argc, char **argv)
}
pipe(pfd);
rdfd = wrfd = pfd[0];
procrfork(startssh, nil, mainstacksize, RFFDG|RFNOTEG);
procrfork(startssh, nil, mainstacksize, RFFDG|RFNOTEG|RFNAMEG);
close(pfd[1]);
}