From: Ian Jackson Subject: Re: Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. Date: Tue, 26 Aug 2008 15:55:35 +0100 Message-ID: <18612.6503.102522.66721@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> 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 , Anthony Liguori List-Id: xen-devel@lists.xenproject.org Ian Jackson writes ("Re: [Xen-devel] Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals."): > Why does it need a thread ? You can just write to the pipe in the > signal handler. I'll post my code. Just done. As you see it's quite straightforward. We have to save/restore errno in the signal handler as usual. So should I provide a patch to do the same for the termination signals ? They are much less time-critical than aio completion so it's perhaps less important. Ian.