RFE: idle timeout/auto-daemonize combo
Wout Mertens
wmertens at cisco.com
Tue Jul 10 22:23:01 EST 2007
Heya,
On Jul 9, 2007, at 10:24 PM, Wout Mertens wrote:
> Well I patched a 4.6p1 without rejects and it compiled fine. One
> thing I notice is that it enables controlpersist by default. You
> don't initialize control_persist in readconf.c, is that not necessary?
>
> Another thing I noticed is that I can't specify the controlpersist
> value on the command line, it probably only parses the one in
> config files. I'm not totally up to speed with the code yet, so I
> don't know why that is.
>
>> At some point when I have a little more time, I'll adjust my
>> ControlPersist patch to close stdin/stdout/stderr. I keep finding
>> that
>> cvs waits for ssh to finish, and when I log out of ssh sessions I've
>> started a dæmon from, they hang too.
>
> Why don't you replace the daemonizing bit with a call to daemon
> (0,0)? I did that and it seems to work just fine, and it behaves
> better cross-platform to boot.
I attached a new patch to https://bugzilla.mindrot.org/show_bug.cgi?
id=1330 that incorporates these changes.
Works great so far!
Wout.
More information about the openssh-unix-dev
mailing list