From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5965 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: sem_getvalue conformance considerations Date: Fri, 29 Aug 2014 00:47:48 +0400 (MSK) Message-ID: References: <20140827023338.GA21076@brightrain.aerifal.cx> <1409123141.4476.18.camel@eris.loria.fr> <20140827074310.GK12888@brightrain.aerifal.cx> 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 1409258983 21493 80.91.229.3 (28 Aug 2014 20:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2014 20:49:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5972-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 28 22:49:37 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XN6dU-0003oL-Dn for gllmg-musl@plane.gmane.org; Thu, 28 Aug 2014 22:49:36 +0200 Original-Received: (qmail 14283 invoked by uid 550); 28 Aug 2014 20:49:35 -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 14275 invoked from network); 28 Aug 2014 20:49:35 -0000 In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) Xref: news.gmane.org gmane.linux.lib.musl.general:5965 Archived-At: Thanks (again) to Rich for showing on IRC that that still was not correct, with at least two issues: 1. with one waiter, unwait causes an in-progress post to be lost (perhaps workaroundable by consuming the post from unwait); 2. it is invalid to update val[1] non-atomically with val[0] in sem_post, as the semaphore may be destroyed in between by a waiter that noticed the post via unwait Alexander