[uClinux-dev] sshd - MUST run from inetd?

David McCullough davidm at snapgear.com
Sun Aug 14 18:53:02 EDT 2005


Jivin Doug Kehn lays it down ...

> --- David McCullough wrote:
> 
> > Jivin Goodman, Brad lays it down ...
> > > I am debugging my sshd which is not working. I am
> > getting a "Socket operation on non-socket" error. I
> > have found the following code (see below). This
> > seems to allude to the fact the sshd MUST be run
> > from inetd, because otherwise, fds 0, 1 and 2 would
> > not be sockets - and sock_in (below) would then get
> > set to a non-socket, generating the error I am
> > seeing.
> > > 
> > > Can anyone confirm or deny??
> > 
> 
> I'm running sshd from inittab on an ADI Coyote
> (IXP425).
> 
> > Sure looks that way.  This was probably done to
> > avoid the problem of
> > daemonising under uClinux.
> > 
> 
> It looks like __uClinux__ is defined, or not,
> depending on the architecture (e.g. look in
> vendors/config/*/config.arch).  I assume __uClinux__
> is most likely defined for no-mmu processors?

__uClinux__ is only defined for systems without an MMU, sorry,  I
assumed that was the case.

Cheers,
Davidm

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com



More information about the uClinux-dev mailing list