From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6696 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [RFC] EINTR and PC loser-ing library design Date: Mon, 8 Dec 2014 10:28:44 -0500 Message-ID: <20141208152844.GF4574@brightrain.aerifal.cx> References: <20141208141039.GA4574@brightrain.aerifal.cx> <5485B5E1.90602@skarnet.org> <20141208143223.GB4574@brightrain.aerifal.cx> <5485B98D.4010603@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1418052545 17771 80.91.229.3 (8 Dec 2014 15:29:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 15:29:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6709-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 08 16:28:58 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Xy0F8-0002ud-Cl for gllmg-musl@m.gmane.org; Mon, 08 Dec 2014 16:28:58 +0100 Original-Received: (qmail 3171 invoked by uid 550); 8 Dec 2014 15:28:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3158 invoked from network); 8 Dec 2014 15:28:56 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:6696 Archived-At: On Mon, Dec 08, 2014 at 04:18:48PM +0100, dannym@scratchpost.org wrote: > Hello, > > SysV msgrcv (POSIX.1-2001) explicitly states that it never > automatically restarts the syscall, it also mentions SA_RESTART to > be of no effect for it. So one can always receive EINTR, SA_RESTART > or not. I don't see any such documentation that it ignores SA_RESTART in POSIX, looking at both Issue 7 (2008) and Issue 6. What document are you looking at for it? The only such exception I'm aware of is that POSIX allows, but does not require, select to fail with EINTR even when SA_RESTART is used. This is fairly inconsequential since select is almost always used in a manner where failure results in a retry. Rich