This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Patch to fix pselect() handling of NULL timeout argument
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Dan Jakubiec <djakubiec at yahoo dot com>
- Cc: eCos Patches <ecos-patches at sources dot redhat dot com>,Nick Garnett <nickg at ecoscentric dot com>
- Date: Fri, 5 Dec 2003 10:05:00 +0100
- Subject: Re: Patch to fix pselect() handling of NULL timeout argument
- References: <20031202153206.98934.qmail@web21201.mail.yahoo.com>
On Tue, Dec 02, 2003 at 07:32:06AM -0800, Dan Jakubiec wrote:
> Attached is a small patch that fixes the pselect() call's handling of
> NULL timeout arguments. The previous implementation would use an
> uninitialized timeout structure when passed a NULL timeout.
>
> This bug would cause pselect()'s with NULL timeouts to timeout after
> some random interval. The proper behavior in this case is to block
> indefinitely.
Committed.
Thanks
Andrew