Avoid specifying bogus DISPLAY=None when spawning device model.

Signed-off-by: James Bulpin <james@xensource.com>
This commit is contained in:
jrb44@plym.cl.cam.ac.uk committed 2005-10-20 19:37:41 +01:00
1 parent 739b1e205e
commit d52306f795
1 file changed
+2 -1
+2 -1
View File
@@ -311,7 +311,8 @@ class VmxImageHandler(ImageHandler):
"-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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.