diff options
author | 2016-09-17 01:01:42 +0000 | |
---|---|---|
committer | 2016-09-17 01:01:42 +0000 | |
commit | a4db8948d5d35e47b82d7b2e43a35c935ba6c3ca (patch) | |
tree | cc6835b0e1f9b191d7bb880b6ad7f642ee849a35 /lib/libc | |
parent | NPF > 0 is a better test than SMALL for presence of pf. (diff) | |
download | wireguard-openbsd-a4db8948d5d35e47b82d7b2e43a35c935ba6c3ca.tar.xz wireguard-openbsd-a4db8948d5d35e47b82d7b2e43a35c935ba6c3ca.zip |
Restore warnings about multiple process waiting on same fd
requested by mpf@
ok deraadt tedu@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/poll.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/select.2 | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index fd276bf8ad6..1c622a450ab 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: poll.2,v 1.33 2016/06/07 16:18:56 tedu Exp $ +.\" $OpenBSD: poll.2,v 1.34 2016/09/17 01:01:42 guenther Exp $ .\" .\" Copyright (c) 1994 Jason R. Thorpe .\" All rights reserved. @@ -28,7 +28,7 @@ .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" -.Dd $Mdocdate: June 7 2016 $ +.Dd $Mdocdate: September 17 2016 $ .Dt POLL 2 .Os .Sh NAME @@ -367,3 +367,9 @@ Similarly, the and .Dv POLLRDBAND flags are also equivalent. +.Pp +Internally to the kernel, +.Fn poll +and +.Fn ppoll +work poorly if multiple processes wait on the same file descriptor. diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2 index 833f415359b..5f55f3d6a83 100644 --- a/lib/libc/sys/select.2 +++ b/lib/libc/sys/select.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: select.2,v 1.41 2016/06/07 16:18:56 tedu Exp $ +.\" $OpenBSD: select.2,v 1.42 2016/09/17 01:01:42 guenther Exp $ .\" $NetBSD: select.2,v 1.5 1995/06/27 22:32:28 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)select.2 8.2 (Berkeley) 3/25/94 .\" -.Dd $Mdocdate: June 7 2016 $ +.Dd $Mdocdate: September 17 2016 $ .Dt SELECT 2 .Os .Sh NAME @@ -293,3 +293,9 @@ and using .Fn timersub (as described in .Xr getitimer 2 ) . +.Pp +Internally to the kernel, +.Fn select +and +.Fn pselect +work poorly if multiple processes wait on the same file descriptor. |