Bug 175239

Summary: sem_wait can be interrupted
Product: Documentation Reporter: Schaich, Alonso <alonsoschaich>
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: doc, felix.the.red
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Schaich, Alonso 2013-01-12 19:30:00 UTC
SEM_WAIT(3) (and most probably also SEM_POST(3)) from the Standard C Library are aborted over here on arrival of a UNIX Signal, setting errno to 4 (EINTR).

This behavior should be mentioned in the corresponding manual pages.
Comment 1 Schaich, Alonso 2013-05-12 22:34:28 UTC
seems to have been fixed by r249566, r249644
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:22 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Felix Johnson freebsd_triage 2021-10-24 03:29:27 UTC
I think this was documented, at least for SEM_WAIT(3) since this commit:
https://cgit.freebsd.org/src/commit/lib/libc/gen/sem_wait.3?id=8916af883c4f1a6927393113da320c96ce6508c1

I'm not sure how to tell if sem_post() can be interrupted.