[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Avoid specifying bogus DISPLAY=None when spawning device model.



# HG changeset patch
# User jrb44@xxxxxxxxxxxxxxxxx
# Node ID 6f5b94da963a9651814ecd1d112db5e5082f5c81
# Parent  1e7bbbdff402b35b77b34c42e3c57eeb3d4dcd93
Avoid specifying bogus DISPLAY=None when spawning device model.

Signed-off-by: James Bulpin <james@xxxxxxxxxxxxx>

diff -r 1e7bbbdff402 -r 6f5b94da963a tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Oct 20 11:35:57 2005
+++ b/tools/python/xen/xend/image.py    Thu Oct 20 18:37:41 2005
@@ -311,7 +311,8 @@
                   "-m", "%s" % (self.vm.getMemoryTarget() / 1024)])
         args = args + self.dmargs
         env = dict(os.environ)
-        env['DISPLAY'] = self.display
+        if self.display:
+            env['DISPLAY'] = self.display
         log.info("spawning device models: %s %s", self.device_model, args)
         self.pid = os.spawnve(os.P_NOWAIT, self.device_model, args, env)
         log.info("device model pid: %d", self.pid)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.