From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvuiU-0002zn-0P for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:15:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvuiP-0002wd-C4 for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:15:41 -0400 Received: from [199.232.76.173] (port=59089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvuiP-0002wC-0v for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:15:37 -0400 Received: from mail2.shareable.org ([80.68.89.115]:56409) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvuiO-0001ln-KI for qemu-devel@nongnu.org; Thu, 08 Oct 2009 11:15:36 -0400 Date: Thu, 8 Oct 2009 16:15:27 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH] Revert "posix-aio-compat: avoid signal race when spawning a thread" Message-ID: <20091008151527.GB29691@shareable.org> References: <20091007132006.GA9668@redhat.com> <4ACCC1A5.5020306@codemonkey.ws> <20091007204421.GC4085@redhat.com> <20091007205523.GA4783@redhat.com> <20091008014742.GA15601@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" malc wrote: > On Thu, 8 Oct 2009, Jamie Lokier wrote: > > > malc wrote: > > > > The use of sigprocmask() is unspecified in a > > > > multithreaded process; see pthread_sigmask(3). > > > > > > > > Does it matter? > > > > > > One of the patches i've asked you to try today replaced sigprocmask with > > > pthread_sigmask, you've said it did nothing. In any case, strictly > > > speaking, the code is wrong, so yes it does matter in theory. > > > > It won't matter on a Linux host (they are the same), but > > pthread_sigmask should be used because it's Right(tm) and it could > > make a difference on some other host. > > What made you think i'm of a different opinion? The fact you asked Michael to test a patch which replaced sigprocmask with pthread_sigmask. -- Jamie