dom0/core: use generic run() to wait for qubes-session

Especially use 'ignore_stderr' feature.
This commit is contained in:
Marek Marczykowski 2012-07-20 13:06:26 +02:00
parent 2ddd48f8e4
commit ba568ed3e9

View File

@ -1400,7 +1400,7 @@ class QubesVm(object):
if verbose:
print >> sys.stderr, "--> Waiting for qubes-session..."
subprocess.call([qrexec_client_path, "-d", str(xid), "user:echo $$ >> /tmp/qubes-session-waiter; [ ! -f /tmp/qubes-session-env ] && exec sleep 365d"])
self.run('echo $$ >> /tmp/qubes-session-waiter; [ ! -f /tmp/qubes-session-env ] && exec sleep 365d', ignore_stderr=True, gui=False, wait=True)
retcode = subprocess.call([qubes_clipd_path])
if retcode != 0: