From: Jamie Lokier Subject: Re: [Xen-devel] Re: [PATCH 01/13] Handle terminating signals. Date: Wed, 27 Aug 2008 17:27:19 +0100 Message-ID: <20080827162719.GC25387@shareable.org> References: <18611.63711.631859.280983@mariner.uk.xensource.com> <48B4027C.1000008@codemonkey.ws> <18612.1900.73781.314743@mariner.uk.xensource.com> <48B41B7E.40708@codemonkey.ws> <18612.7267.832361.270651@mariner.uk.xensource.com> <48B41F55.1000909@codemonkey.ws> <18612.8502.305043.233934@mariner.uk.xensource.com> <48B422F2.1090900@codemonkey.ws> <20080826174729.GB25893@shareable.org> <18613.8801.187470.178088@mariner.uk.xensource.com> Reply-To: qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <18613.8801.187470.178088@mariner.uk.xensource.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Ian Jackson Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Ian Jackson wrote: > Jamie Lokier writes ("Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals."): > > Leading to: why would (real) signals being used to collect AIO events > > anyway, if you don't have signalfd()? If you've got a helper thread, > > If you use aio, glibc has a tendency to emulate it with thread(s). > The helper thread I was referring to in my commit message is the > glibc-created helper thread. glibc appears (in strace) to do IO in > this thread and then raises the signal you asked for (SIGUSR2 in > qemu's case). That observation implies Anthony's helper thread will not always receive the SIGUSR2 signals - Glibc's thread may receive them instead. So when the signalfd-emulation signal handler writes to the pipe, it might block Glibc's AIO thread. Is that ok, Anthony? -- Jamie