[Bug 1883] use setproctitle for persistent mux master

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri May 6 16:10:25 EST 2011


https://bugzilla.mindrot.org/show_bug.cgi?id=1883

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org

--- Comment #5 from Damien Miller <djm at mindrot.org> 2011-05-06 16:10:25 EST ---
chdir("/") is required for system daemons so they don't block the
unmounting of filesystems by holding directory fds open. This seems to
be less important for user background processes, where the user would
probably remain logged in anyway. Furthermore, in ssh's case it will
require ongoing access to known_hosts over the life of the connection
(as the hostkey can legally change during key re-exchange) and to the
mux socket itself.

I guess you could make a case for doing
chdir(dirname(UserKnownHostsFile)) or chdir to the directory of the mux
socket, but that is really a separate issue.

as for doing setproctitle for gracefully-closed mux masters: good idea.
I'll add it to the patch.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list