From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13206 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile-time flag to enable optional EINTR's? Date: Fri, 7 Sep 2018 09:15:08 -0400 Message-ID: <20180907131508.GK1878@brightrain.aerifal.cx> References: <20180907021657.GJ1878@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1536326001 21786 195.159.176.226 (7 Sep 2018 13:13:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 13:13:21 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-13222-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 07 15:13:17 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fyGZY-0005Wa-6f for gllmg-musl@m.gmane.org; Fri, 07 Sep 2018 15:13:16 +0200 Original-Received: (qmail 3350 invoked by uid 550); 7 Sep 2018 13:15:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3332 invoked from network); 7 Sep 2018 13:15:20 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:13206 Archived-At: On Fri, Sep 07, 2018 at 12:09:33AM -0400, Joseph C. Sible wrote: > > Can you discuss what you're trying to use EINTR for here? > > It's for a Python program with several threads that are often waiting > on various locks, events, etc., all implemented by Python in terms of > POSIX semaphores. I seem to recall Python's testsuite having a test asserting that POSIX semaphores respond to interrupting signals, so it sounds like the underlying problem is that Python is implementing some of its primitives with a non-portable assumption. I'll take a look or see if someone else from the community wants to. Rich