From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6691 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: Re: [RFC] EINTR and PC loser-ing library design Date: Mon, 08 Dec 2014 15:45:33 +0100 Message-ID: <5485B98D.4010603@skarnet.org> References: <20141208141039.GA4574@brightrain.aerifal.cx> <5485B5E1.90602@skarnet.org> <20141208143223.GB4574@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418049952 5411 80.91.229.3 (8 Dec 2014 14:45:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 14:45:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6704-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 08 15:45:45 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 1XxzZH-00039N-Pi for gllmg-musl@m.gmane.org; Mon, 08 Dec 2014 15:45:43 +0100 Original-Received: (qmail 30460 invoked by uid 550); 8 Dec 2014 14:45:42 -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 30452 invoked from network); 8 Dec 2014 14:45:41 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <20141208143223.GB4574@brightrain.aerifal.cx> X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejiedrfeefgdehjecutefuodetggdotefrucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkfffhfgggvffufhgjtgfgsehtjegrtddtfeejnecuhfhrohhmpefnrghurhgvnhhtuceuvghrtghothcuoehskhgrqdguihgvthhlihgstgesshhkrghrnhgvthdrohhrgheq Xref: news.gmane.org gmane.linux.lib.musl.general:6691 Archived-At: On 08/12/2014 15:32, Rich Felker wrote: > The system call restarts (or, formally, it's as if it were never > interrupted; EINTR only applies to signal _handlers_). Could you please provide a pointer to the specification that guarantees this ? I've never been able to find a normative text that ensures you will never get EINTR unless you explicitly install a signal handler without SA_RESTART. >> And that happens all the time in asynchronous event loops where you >> handle signals with a self-pipe. ;) > > Only if you have installed interrupting signal handlers. Which basically means any signal except SIGCHLD. -- Laurent