We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 231 - sem_wait() EINTR not handled.
Summary: sem_wait() EINTR not handled.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: thread (show other bugs)
Version: 1.2.9
Hardware: Other Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 18:05 UTC by bryan ogawa
Modified: 2006-05-17 19:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bryan ogawa 2006-05-17 18:05:13 UTC
In NPTL, sem_wait() can return EINTR . The current SDL_SemWait() will return the EINTR (which might be OK), but code which depends on SDL_SemWait (e.g. in SDL_CreateThread) does not check for EINTR.

this can cause a race in SDL_CreateThread().

note that SDL_SemWait() documentation doesn't note that it can return EINTR if you choose to have SDL_SemWait continue to return EINTR.
Comment 1 bryan ogawa 2006-05-17 18:05:32 UTC
actually, this shows up on Linux, not mac.
Comment 2 Ryan C. Gordon 2006-05-17 19:43:00 UTC
Fixed in svn revision #2476.

--ryan.