Subject: [alpine-devel] [PATCH 1/4] xen: prevent qemu daemon from screwing the console

From: Roger Pau Monne <[email-masked]>
Date: Fri, 16 Nov 2012 17:53:15 +0100

Qemu when launched with -nographic and -monitor screws the console
badly. Use nohup to prevent that.

Signed-off-by: Roger Pau Monné <[email-masked]>
---
 main/xen/APKBUILD      |    2 +-
 main/xen/xenqemu.initd |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD
index 94a7c10..7143850 100644
--- a/main/xen/APKBUILD
+++ b/main/xen/APKBUILD
@@ -145,4 +145,4 @@ ec2252c72050d7d5870a3a629b873ba6  xenconsoled.confd
 9b20e056d475b50586cf9e1fc94e13c4  xendomains.confd
 9df68ac65dc3f372f5d61183abdc83ff  xen-consoles.logrotate
 6a2f777c16678d84039acf670d86fff6  xenqemu.confd
-fbd2082d448acfec2e69b860120d79b7  xenqemu.initd"
+f9afbf39e2b5a7d9dde60ebbd249ea7d  xenqemu.initd"
diff --git a/main/xen/xenqemu.initd b/main/xen/xenqemu.initd
index 463bf59..aeabd30 100644
--- a/main/xen/xenqemu.initd
+++ b/main/xen/xenqemu.initd
@@ -7,8 +7,11 @@ depend() {
 
 start() {
 	ebegin "Starting QEMU as disk backend for dom0"
-	start-stop-daemon --start --exec /usr/lib/xen/bin/qemu-system-i386 \
+	# XXX: qemu f**** the console when launched with
+	# -nographic and -monitor, use nohup to prevent that.
+	start-stop-daemon --start --exec nohup \
 		--pidfile=/var/run/xenqemu.pid -b -- \
+		/usr/lib/xen/bin/qemu-system-i386 \
 		-xen-domid 0 -xen-attach -name dom0 -nographic \
 		-M xenpv -monitor /dev/null \
 		-pidfile /var/run/xenqemu.pid \
-- 
1.7.7.5 (Apple Git-26)

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---