core: collect stderr too when vm.run_service is called with passio_popen
Give access to all file descriptors when requested.
This commit is contained in:
parent
7e9c816b7b
commit
da74d75e6b
@ -1692,13 +1692,14 @@ class QubesVm(object):
|
||||
localcmd=localcmd, user=user, wait=wait, gui=gui)
|
||||
elif input:
|
||||
p = self.run("QUBESRPC %s %s" % (service, source),
|
||||
user=user, wait=wait, gui=gui, passio_popen=True)
|
||||
user=user, wait=wait, gui=gui, passio_popen=True,
|
||||
passio_stderr=True)
|
||||
p.communicate(input)
|
||||
return p.returncode
|
||||
else:
|
||||
return self.run("QUBESRPC %s %s" % (service, source),
|
||||
passio_popen=passio_popen, user=user, wait=wait,
|
||||
gui=gui)
|
||||
gui=gui, passio_stderr=passio_popen)
|
||||
|
||||
def attach_network(self, verbose = False, wait = True, netvm = None):
|
||||
self.log.debug('attach_network(netvm={!r})'.format(netvm))
|
||||
|
Loading…
Reference in New Issue
Block a user