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 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely.

To: 'Ian Jackson' <Ian.Jackson@xxxxxxxxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely.
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 26 Dec 2008 18:25:27 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc:
Delivery-date: Fri, 26 Dec 2008 02:25:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclnGy7DcEZTSQmNTGqpKH0gZivgHgAJ0Ubg
Thread-topic: [PATCH] ioemu-remote: check shutdown_requested timely.
After a recent merge of the ioemu-remote tree several weeks ago, I find in 
main() -> termsig_seup(), ioemu sets a SIGHUP handler that sets a global 
variable shutdown_requested to 1, but ioemu doesn't check the variable and as a 
result, ioemu wouldn't terminate when xend sends a SIGHUP to it; finally xend 
has to send a SIGKILL to it in 10 seconds. The small patch adds a check to 
terminate ioemu timely.     

Thanks,
-- Dexuan

Attachment: detect_qemu_shutdown_requested.patch
Description: detect_qemu_shutdown_requested.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>