From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10757 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Robust shared mutexes? Date: Mon, 28 Nov 2016 16:53:09 -0500 Message-ID: <20161128215309.GY1555@brightrain.aerifal.cx> References: <20161126214943.GA2635@hotdamn.lan> <20161126222443.GV1555@brightrain.aerifal.cx> <20161126225104.GA2151@hotdamn.lan> <20161126225617.GW1555@brightrain.aerifal.cx> <651EE05A-C592-45C3-BAB6-A6CDDDAF98A4@gmail.com> 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 1480370004 18073 195.159.176.226 (28 Nov 2016 21:53:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2016 21:53:24 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10770-gllmg-musl=m.gmane.org@lists.openwall.com Mon Nov 28 22:53:20 2016 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 1cBTrT-0003yX-MZ for gllmg-musl@m.gmane.org; Mon, 28 Nov 2016 22:53:19 +0100 Original-Received: (qmail 7950 invoked by uid 550); 28 Nov 2016 21:53: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 7932 invoked from network); 28 Nov 2016 21:53:21 -0000 Content-Disposition: inline In-Reply-To: <651EE05A-C592-45C3-BAB6-A6CDDDAF98A4@gmail.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10757 Archived-At: On Mon, Nov 28, 2016 at 01:36:50PM -0800, Khem Raj wrote: > > > On Nov 26, 2016, at 2:56 PM, Rich Felker wrote: > > > > On Sat, Nov 26, 2016 at 11:51:05PM +0100, Sebastian Kemper wrote: > >> On Sat, Nov 26, 2016 at 05:24:43PM -0500, Rich Felker wrote: > >>> On Sat, Nov 26, 2016 at 10:49:44PM +0100, Sebastian Kemper wrote: > >>>> Hello all, > >>>> > >>>> I'm cross-compiling for OpenWRT/LEDE and have this variable > >>>> apr_cv_mutex_robust_shared. Should I set it to yes or no with musl? I've > >>>> searched around but found conflicting infos. One post said there's no > >>>> shared mutex support in musl > >>> > >>> Do you have a link for that? If there's incorrect information I'd like > >>> to reply and see if it can be corrected. > >> > >> Hello Rich, > >> > >> Thank you very much for the reply! > >> > >> I looked for the link and it turns out it was an error on my part. The > >> post wasn't referring to robust shared mutexes. It was regarding process > >> shared mutexes > >> > >> http://lists.openembedded.org/pipermail/openembedded-core/2016-March/119214.html > >> > >> It says musl doesn't have process shared mutexes so one should set > >> apr_cv_process_shared_works=no. I take it that is correct? > > > > No, it's incorrect and I have no idea where that idea came from. I'll > > ask Khem. > > > > IIRC it was not musl but papering over apr specific issue. I never got time to really dig in > to root cause it. Indeed, that's what it seems to be here too. They don't support the standard API, only some ancient glibc _NP version of it, and they don't even do anything to handle the case of ownerdied correctly... Rich