Bug 14411
Summary: | pselect man page Linux notes appear to be out of date | ||
---|---|---|---|
Product: | Documentation | Reporter: | Mike (mac) |
Component: | man-pages | Assignee: | 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
Mike
2009-10-15 09:14:20 UTC
Mike, thanks for the report. I agree the text should be clearer. I applied the following patch for man-pages-3.26. Thanks, Michael --- a/man2/select.2 +++ b/man2/select.2 @@ -427,15 +427,19 @@ that did not take a .I sigmask argument. -Since version 2.1, glibc has provided an emulation of +Starting with version 2.1, glibc provided an emulation of .BR pselect () -that is implemented using +that was implemented using .BR sigprocmask (2) and .BR select (). -This implementation remains vulnerable to the very race condition that +This implementation remained vulnerable to the very race condition that .BR pselect () was designed to prevent. +Modern versions of glibc use the (race-free) +.BR pselect () +system call on kernels where it is provided. + On systems that lack .BR pselect (), reliable (and more portable) signal trapping can be achieved |