[PATCH]: Allow SSHD to install as service under WIndows 9x/Me

Tim Rice tim at multitalents.net
Tue Nov 27 12:27:58 EST 2001


On Mon, 26 Nov 2001, Corinna Vinschen wrote:

> Hi,
> 
> did anybody with CVS write access look into this patch?  It would
> be nice to get that included with 3.0.1p2 or 3.0.2p1.

Commited.

> 
> Corinna
> 
> On Tue, Nov 20, 2001 at 02:13:59PM +0100, Corinna Vinschen wrote:
> > On Tue, Nov 20, 2001 at 02:01:19PM +0100, Corinna Vinschen wrote:
> > > Hi,
> > > 
> > > the following patch is a (hopefully least intrusive) extension
> > > when sshd is started so that it daemonizes itself.  In that case
> > > Windows 9x/Me has a slight problem with sshd as soon as the current
> > > user logs off.  The sshd daemon will be killed as well.  Since 
> > > installing services is very different between NT and 9x, the way
> > > used for NT boxes isn't working well for 9x.  For that reason
> > > several 9x users have asked for a solution which allows _real_
> > > daemonizing sshd on their boxes.  The following patch allows to do that.
> > > 
> > > When the function daemon() forks, the child process is registered as a
> > > service when started on a 9x system.  The functionality is outsourced
> > > to bsd-cygwin_util.c, the daemon.c code just contains a conditionalized
> > > call to the new function.  Hope, that's ok.
> > > 
> > > Additionally I added a patch to contrib/cygwin/README, which just fixes
> > > a typo.
> > > 
> > > Thanks in advance,
> > > Corinna
> > 
[patch sniped]

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net




More information about the openssh-unix-dev mailing list