From a4db8948d5d35e47b82d7b2e43a35c935ba6c3ca Mon Sep 17 00:00:00 2001 From: guenther Date: Sat, 17 Sep 2016 01:01:42 +0000 Subject: Restore warnings about multiple process waiting on same fd requested by mpf@ ok deraadt tedu@ --- lib/libc/sys/poll.2 | 10 ++++++++-- lib/libc/sys/select.2 | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'lib/libc') 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. -- cgit v1.2.3-59-g8ed1b