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

Doug Kehn rdkehn at yahoo.com
Sun Aug 14 15:36:04 EDT 2005


--- 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?

Regards,
...doug

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the uClinux-dev mailing list