ia64/xen-unstable

changeset 11179:a774cbd38187

[qemu] Default monitor/serial ports to /dev/null if -nographic.
qemu-dm runs daemonized and the default for -nographic is to redirect
the monitor and serial ports to stdio which causes qemu-dm to busy
read from stdin. Change the default for -nographic to redirect the
monitor and serial ports to /dev/null.

Based on a patch from: Steven Smith <sos22-xen@srcf.ucam.org>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author chris@kneesaa.uk.xensource.com
date Thu Aug 17 11:34:13 2006 +0100 (2006-08-17)
parents 83003532d71f
children 24827cb8a945
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Thu Aug 17 11:32:39 2006 +0100
     1.2 +++ b/tools/ioemu/vl.c	Thu Aug 17 11:34:13 2006 +0100
     1.3 @@ -6036,10 +6036,11 @@ int main(int argc, char **argv)
     1.4                  }
     1.5                  break;
     1.6              case QEMU_OPTION_nographic:
     1.7 -                pstrcpy(monitor_device, sizeof(monitor_device), "stdio");
     1.8 +                if(!strcmp(monitor_device, "vc"))
     1.9 +                    pstrcpy(monitor_device, sizeof(monitor_device), "null");
    1.10                  if(!strcmp(serial_devices[0], "vc"))
    1.11                      pstrcpy(serial_devices[0], sizeof(serial_devices[0]),
    1.12 -                            "stdio");
    1.13 +                            "null");
    1.14                  nographic = 1;
    1.15                  break;
    1.16              case QEMU_OPTION_kernel: