Bug 192071

Summary: Conflicting description for sem_wait interrupted by signal
Product: Documentation Reporter: Fabjan Sukalia (fsukalia)
Component: man-pagesAssignee: documentation_man-pages (documentation_man-pages)
Status: RESOLVED CODE_FIX    
Severity: normal CC: mtk.manpages
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Fabjan Sukalia 2017-01-07 19:41:24 UTC
In the manpage for sem_wait(3) in the NOTES sections says that sem_wait can be interrupted by a signal despite using the SA_RESTART flag. 

The manpage for signal(7) states the opposite, that a blocking call of sem_wait and sem_timedwait will be automatically restarted if the signal handler uses the SA_RESTART flag.
Comment 1 Michael Kerrisk 2017-01-23 03:16:38 UTC
signal(7) is correct. The text in sem-wait(3) is out of date. I removed that text.

Closing this now. Thanks for the report.