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: qemu-devel@xxxxxxxxxx
Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals.
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: 2008年8月26日 16:23:22 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Gerd Hoffmann <kraxel@xxxxxxxxxx>
Delivery-date: 2008年8月26日 08:24:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <m2n.s.1KXzwZ-002RA9@xxxxxxxxxxxxxxxxxxxxxx>
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>
Newsgroups: chiark.mail.nongnu.qemu.devel
References: <1219336054-15919-1-git-send-email-kraxel@xxxxxxxxxx> <1219336054-15919-2-git-send-email-kraxel@xxxxxxxxxx> <m2n.s.1KWGbo-001Nr9@xxxxxxxxxxxxxxxxxxxxxx> <18611.56975.584280.471257@xxxxxxxxxxxxxxxxxxxxxxxx> <48B3F411.2020306@xxxxxxxxxx> <18611.63711.631859.280983@xxxxxxxxxxxxxxxxxxxxxxxx> <48B4027C.1000008@xxxxxxxxxxxxx> <18612.1900.73781.314743@xxxxxxxxxxxxxxxxxxxxxxxx> <m2n.s.1KXzwZ-002RA9@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Avi Kivity writes ("Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle 
terminating signals."):
> Not sure that it matters, but the semantics are slightly different: 
> with a thread you don't get EINTR in random syscalls as the signal 
> thread is the only one that has the signals unblocked.
That's true but I don't think it's really relevant because we already
have other signal handlers (and we might grow further ones) so the
rest of the code has to be robust against those.
My experience suggests very strongly that we should avoid doing
multithreaded things if at all possible. Threads are less portable;
even when they are provided many of the implementations are buggy
(although less so nowadays).
There is also the way that once you have a multithreaded program, it
is much more difficult to discourage the expansion of the concurrent
functionality until the whole program is a mass of race bugs. I would
rather not open this stable door.
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] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. , Anthony Liguori
Next by Date: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. , Ian Jackson
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. , Avi Kivity
Indexes: [Date] [Thread] [Top] [All Lists]

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

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