This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to fix pselect() handling of NULL timeout argument


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.

Your comments are appreciated.

--
Dan Jakubiec
Systech Corp

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Attachment: pselect.pat
Description: pselect.pat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]