Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LblMM-00055H-N3 for qemu-devel@nongnu.org; Mon, 23 Feb 2009 19:41:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LblML-000554-8S for qemu-devel@nongnu.org; Mon, 23 Feb 2009 19:41:18 -0500 Received: from [199.232.76.173] (port=58173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LblML-000551-5V for qemu-devel@nongnu.org; Mon, 23 Feb 2009 19:41:17 -0500 Received: from volt.iem.pw.edu.pl ([194.29.146.3]:22340) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LblMJ-00005M-8W for qemu-devel@nongnu.org; Mon, 23 Feb 2009 19:41:15 -0500 Subject: Re: [Qemu-devel] downscript not run when using quit in monitor MIME-Version: 1.0 Date: Tue, 24 Feb 2009 01:41:09 +0100 From: =?UTF-8?Q?J=C4=99drzej_Kalinowski?= In-Reply-To: References: Message-ID: <01a73bd5af90e953f04f6ad80b151087@iem.pw.edu.pl> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, 19 Feb 2009 11:27:19 +0100, J=C4=99drzej Kalinowski=0D wrote:=0D > Hello,=0D > =0D > I'm using qemu to simulate various network booting scenarios w pxe/gPXE= .=0D > I use my ifup / ifdown script to set up / destroy tap devices form the=0D qemu=0D > instance. =0D > =0D > However if I 'quit' qemu from the monitor - the downscript is not=0D executed.=0D > Is it by design or should it be classified as a bug? =0D > If it's fine - how can I close the machine properly (with downscript=0D > execution) in -curses mode? It has no OS loaded - it didn't succeded to= =0D > boot from pxe..=0D > =0D =0D Following is a trivial patch I needed to apply to make downscripts=0D execute...=0D Maybe will save a few seconds to someone..=0D =0D Cheers - J=C4=99drzej=0D =0D --- monitor.c.orig 2009-02-22 19:13:22.000000000 +0100=0D +++ monitor.c 2009-02-22 18:53:17.000000000 +0100=0D @@ -380,6 +380,7 @@=0D =0D static void do_quit(void)=0D {=0D + net_cleanup();=0D exit(0);=0D }=0D =20