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

Summary: sem_wait() EINTR not handled.
Product: SDL Reporter: bryan ogawa <bko>
Component: threadAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.9   
Hardware: Other   
OS: Linux   

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.