Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 2009 07:21:13 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198781 - head/lib/libc/sys
Message-ID:  <200911020721.nA27LDq1048764@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Mon Nov  2 07:21:13 2009
New Revision: 198781
URL: http://svn.freebsd.org/changeset/base/198781

Log:
  Attempt to reduce accidental foot-shooting by pointing out that
  accept(2)ed sockets do not necessarily inherit O_NONBLOCK from
  listening sockets on non-FreeBSD platforms.
  
  Feet shot:	cperciva
  MFC after:	1 month

Modified:
  head/lib/libc/sys/accept.2

Modified: head/lib/libc/sys/accept.2
==============================================================================
--- head/lib/libc/sys/accept.2	Mon Nov  2 06:36:54 2009	(r198780)
+++ head/lib/libc/sys/accept.2	Mon Nov  2 07:21:13 2009	(r198781)
@@ -126,6 +126,10 @@ new socket.
 For some applications, performance may be enhanced by using an
 .Xr accept_filter 9
 to pre-process incoming connections.
+.Pp
+Portable programs should not rely on the
+.Dv O_NONBLOCK
+property being inherited.
 .Sh RETURN VALUES
 The call returns \-1 on error.
 If it succeeds, it returns a non-negative



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911020721.nA27LDq1048764>