From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 27 13:45:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F89E1065675 for ; Wed, 27 Feb 2008 13:45:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [87.251.61.211]) by mx1.freebsd.org (Postfix) with ESMTP id 2A1E28FC15 for ; Wed, 27 Feb 2008 13:45:28 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1ADAB1CC40; Wed, 27 Feb 2008 14:20:41 +0100 (CET) Date: Wed, 27 Feb 2008 14:20:41 +0100 From: Ed Schouten To: Mark Linn Message-ID: <20080227132041.GD71045@hoeg.nl> References: <84fb42ef0802270107y4ddb8fd2scd83fe086414869f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WK3l2KTTmXPVedZ6" Content-Disposition: inline In-Reply-To: <84fb42ef0802270107y4ddb8fd2scd83fe086414869f@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Hackers Subject: Re: non-blocking io, EINTR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 13:45:29 -0000 --WK3l2KTTmXPVedZ6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mark Linn wrote: > I am setting the O_NONBLOCK flag on a socket file descriptor using fcntl, >=20 > will a read() on the socket return EINTR when the process get a signal? Probably not, because that would only happen if the kernel would call the *sleep() routines, which it won't do, because the O_NONBLOCK flag disables that. --=20 Ed Schouten WWW: http://g-rave.nl/ --WK3l2KTTmXPVedZ6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfFY6kACgkQ52SDGA2eCwXYzgCaA9sgTxXhxgBexz3/wfwFFES/ rasAn199mwGsm5wxxLnnIjSQBd96Odc+ =5w55 -----END PGP SIGNATURE----- --WK3l2KTTmXPVedZ6--