Hi Brian,

On Mon, Apr 01, 2013 at 07:11:25PM -0700, Bryan Talbot wrote:
> haproxy built with macports on OSX seems to only have support for select()
> and not poll().  I don't have any suggestions but is this environment
> impacted by your proposed changes?

It's a Makefile issue, OSX supports select(), poll() and kqueue(). And BTW,
OSX is one of those causing issues with select() and fd >= 1024 according
to the man page. In fact all operating systems where haproxy may be built
support poll().

> Not running haproxy on osx for anything other than localhost development
> mode of course, but keeping it working on osx would be great.

You're right, I'm going to fix the makefile right now.

> $> /opt/local/sbin/haproxy -vv
> HA-Proxy version 1.4.22 2012/08/09
> Copyright 2000-2012 Willy Tarreau <[email protected]>
> 
> Build options :
>   TARGET  = osx
              ^^^
The issue is here above. The "osx" target is not defined so no option
is taken. So first I'll define such a target because it makes sense to
have it, and second, I'll enable POLL by default when the target is
unknown.

And this way you'll get a better development platform :-)

Thanks,
Willy


Reply via email to