WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signal

To: Jamie Lokier <jamie@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals.
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: 2008年8月28日 10:34:05 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, qemu-devel@xxxxxxxxxx, Gerd Hoffmann <kraxel@xxxxxxxxxx>
Delivery-date: 2008年8月28日 02:34:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080827184146.GD27491@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <18612.1900.73781.314743@xxxxxxxxxxxxxxxxxxxxxxxx> <48B41B7E.40708@xxxxxxxxxxxxx> <18612.7267.832361.270651@xxxxxxxxxxxxxxxxxxxxxxxx> <48B41F55.1000909@xxxxxxxxxxxxx> <18612.8502.305043.233934@xxxxxxxxxxxxxxxxxxxxxxxx> <48B422F2.1090900@xxxxxxxxxxxxx> <20080826174729.GB25893@xxxxxxxxxxxxx> <18613.8801.187470.178088@xxxxxxxxxxxxxxxxxxxxxxxx> <20080827162719.GC25387@xxxxxxxxxxxxx> <18613.33339.351040.938403@xxxxxxxxxxxxxxxxxxxxxxxx> <20080827184146.GD27491@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Jamie Lokier writes ("Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle 
terminating signals."):
> A quick read of Glibc 2.3.1 source says its AIO code does not change
> the signal mask when it creates an AIO handling thread.
Thanks for investigating that.
> (This might be a Glibc bug - threads you don't know about shouldn't be
> receiving your signals, should they?)
Yes, it's a bug. (I wonder why my test program didn't expose it.)
> That means if it wasn't masked when you issued the first AIO request,
> it won't be masked in that thread.
In practice since we use aio this probably means we can't rely on
signal blocking except for signals which qemu keeps blocked `nearly
all' the time. So pipe-to-self in the signal handler is the way to
go.
> It's quite annoying that POSIX threads doesn't provide any way to say
> "mask this signal in all other threads", which you often want to do
> from a library.
That too.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Question: direct I/O for system volume , Jun Kamada
Next by Date: Re: [Xen-devel] Question: direct I/O for system volume , Samuel Thibault
Previous by Thread: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. , Anthony Liguori
Next by Thread: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. , Anthony Liguori
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /