Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: select/poll bug?

Joerg Sonnenberger <> writes:
> On Sun, Aug 03, 2008 at 11:11:54AM -0400, Perry E. Metzger wrote:
>> Joerg Sonnenberger <> writes:
>> > On Sat, Aug 02, 2008 at 02:38:46PM -0500, David Young wrote:
>> >> Perhaps Niels Provos' libevent---see event(3)---is suitable for dhcpcd?
>> >
>> > on AMD64is larger than dhcpcd itself, so the answer is
>> > NO from my perspective.
>> It is a shared library and is always on your machine anyway.
> It is not on the install floppies.

True, but there you link against the .a, not against the .so, and I
think you'll find 80-90% of the library size vanishes.

> Nothing in this thread has shown a good reason for using it at all

Actually, the whole thread argues for it. The library eliminates any
need to know about the insane complications of what multiplexing
system call to use on any given Unix variant.

> -- the API is not excatly simpler than calling poll/select directly
> in this case.

libevent actually makes code like this a lot easier to read.

Perry E. Metzger      

Home | Main Index | Thread Index | Old Index