From: Ian Jackson Subject: Re: Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. Date: Tue, 26 Aug 2008 16:38:13 +0100 Message-ID: <18612.9061.534326.657959@mariner.uk.xensource.com> References: <1219336054-15919-1-git-send-email-kraxel@redhat.com> <1219336054-15919-2-git-send-email-kraxel@redhat.com> <18611.56975.584280.471257@mariner.uk.xensource.com> <48B3F411.2020306@redhat.com> <18611.63711.631859.280983@mariner.uk.xensource.com> <48B4027C.1000008@codemonkey.ws> <18612.1900.73781.314743@mariner.uk.xensource.com> <18612.8170.439324.706002@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Avi Kivity writes ("Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals."): > Ian Jackson wrote: > > 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. > > In this case the thread is only used to emulate the signalfd() system > call; it is not part of qemu proper. That doesn't make us any less exposed to bugs in the threading implementation, and is only of marginal use if anything for explaining to people why we shouldn't have a Windows-style multithreaded bug pile. Also, I think messing about with Linux-specific syscalls and then emulating them is hardly a sensible way to carry on, when the alternative is portable and simple. Ian.