Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: select/poll bug?
On Sat, 2008-08-02 at 22:42 +0200, Joerg Sonnenberger wrote:
> On Sat, Aug 02, 2008 at 08:18:37PM +0100, Roy Marples wrote:
> > select is 100% portable in terms of how it is used by dhcpcd.
> > poll itself is NOT suitable as the timeout cannot handle a DHCP lease of
> > uint32_t seconds on 32-bit platforms.
>
> Huh? I don't understand why poll should not be able to handle the same
> time frame. select doesn't allow more than 31bit for time_t either.
Hmm, true that.
Lets say that select can handle a greater timeframe them as it's time_t
is in seconds, vs an int as milliseconds for poll.
Thanks
Roy
Home |
Main Index |
Thread Index |
Old Index