QubesVm.run(): wait for client to exit on Windows
This commit is contained in:
parent
b6a379e94a
commit
97c793ed16
@ -1438,9 +1438,10 @@ class QubesVm(object):
|
|||||||
args += ["-T"]
|
args += ["-T"]
|
||||||
if passio:
|
if passio:
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
# see here for the explanation (_exec doc):
|
# wait for qrexec-client to exit, otherwise client is not properly attached to console
|
||||||
# http://msdn.microsoft.com/en-us/library/431x4c1w.aspx
|
# if qvm-run is executed from cmd.exe
|
||||||
args[0] = '"%s"' % args[0]
|
ret = subprocess.call(args)
|
||||||
|
exit(ret)
|
||||||
os.execv(system_path["qrexec_client_path"], args)
|
os.execv(system_path["qrexec_client_path"], args)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user