Thanks! I just pushed a fix. It's the same idea but a little less code.

kr

On Sun, Apr 19, 2009 at 3:18 AM, jeethurao <[email protected]> wrote:
>
> Hi,
> I just compiled beanstalk (from the git master) on OSX (Leopard
> v10.5.6). While trying to run beanstalkd, I got the following error.
>
> jrmb:~ jeethurao$ beanstalkd -d -l 127.0.0.1 -p 11300
> beanstalkd: ../net.c:59 in make_server_socket: bind(): Can't assign
> requested address
> beanstalkd: ../beanstalkd.c:272 in main: make_server_socket()
>
> Uncommenting memset(&addr, 0, sizeof addr); from net.c line 53 fixed
> the issue.
>
> Regards,
>
> Jeethu Rao
>
> diff --git a/net.c b/net.c
> index 05ac52b..f438702 100644
> --- a/net.c
> +++ b/net.c
> @@ -50,7 +50,7 @@ make_server_socket(struct in_addr host_addr, int
> port)
>     setsockopt(fd, SOL_SOCKET, SO_LINGER,   &linger, sizeof linger);
>     setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof flags);
>
> -    /*memset(&addr, 0, sizeof addr);*/
> +    memset(&addr, 0, sizeof addr);
>
>     addr.sin_family = AF_INET;
>     addr.sin_port = htons(port);
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to