direct-io.hg

changeset 7446:6f5b94da963a

Avoid specifying bogus DISPLAY=None when spawning device model.

Signed-off-by: James Bulpin <james@xensource.com>
author jrb44@plym.cl.cam.ac.uk
date Thu Oct 20 19:37:41 2005 +0100 (2005-10-20)
parents 1e7bbbdff402
children 1e40bed176d4
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Thu Oct 20 12:35:57 2005 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Thu Oct 20 19:37:41 2005 +0100
     1.3 @@ -311,7 +311,8 @@ class VmxImageHandler(ImageHandler):
     1.4                    "-m", "%s" % (self.vm.getMemoryTarget() / 1024)])
     1.5          args = args + self.dmargs
     1.6          env = dict(os.environ)
     1.7 -        env['DISPLAY'] = self.display
     1.8 +        if self.display:
     1.9 +            env['DISPLAY'] = self.display
    1.10          log.info("spawning device models: %s %s", self.device_model, args)
    1.11          self.pid = os.spawnve(os.P_NOWAIT, self.device_model, args, env)
    1.12          log.info("device model pid: %d", self.pid)