Bug 175239 - sem_wait can be interrupted
Summary: sem_wait can be interrupted
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-12 19:30 UTC by Schaich, Alonso
Modified: 2021-10-24 03:29 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.