David McCullough
Wed, 30 Apr 2008 08:23:38 -0700
> I don't think that another copy is running because I have disabled the
> line from 'inittab' that executes boa automatically. I manually run this
> boa program just once still the program exits.
You need to add a 'perror("bind")' or somehow log teh value of errno
so that you can find out why the bind fails. The errno will almost certainly
tell you the cause,
Cheers,
Davidm
>
> --- On Mon, 4/28/08, Glenn Henshaw <[EMAIL PROTECTED]> wrote:
>
> From: Glenn Henshaw <[EMAIL PROTECTED]>
> Subject: Re: [uClinux-dev] socket binding error
> To: "uClinux development list" <uclinux-dev@uclinux.org>
> Date: Monday, April 28, 2008, 1:33 AM
>
>
> On 27-Apr-08, at 2:01 PM, kailash toshniwal wrote:
>
> > Hi,
> > I am trying to set the boa web server on EDOSK2674 board. When I run boa on my board it fails. I found that the following line (if condition) in boa.c becomes true
> > if (bind(server_s, (struct sockaddr *) &server_sockaddr,sizeof(server_sockaddr)) == -1);
> > so it executes next line
> > die(NO_BIND);
> > and then program dies (exits).
> >
> > I don't know why binding for server is not done? Can anyone please tell me the solution.
> >
> > Thanks
>
> The socket is probably already in use. Is there another copy running already?
>
> --
> Glenn Henshaw Logical Outcome Ltd.
> e: [EMAIL PROTECTED] w: www.logicaloutcome.ca
>
>
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
--
David McCullough, [EMAIL PROTECTED], Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.snapgear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] socket binding error David McCullough
- Re: [uClinux-dev] socket binding error kailash toshniwal
- Re: [uClinux-dev] socket binding error Glenn Henshaw
- Re: [uClinux-dev] socket binding error kailash toshniwal
- RE: [uClinux-dev] socket binding error Gavin Lambert