Change in vdsm[master]: Moving cpopen import to compat to allow working with python 3
nsoffer at redhat.com
nsoffer at redhat.com
Tue Nov 24 22:58:00 UTC 2015
Nir Soffer has posted comments on this change.
Change subject: Moving cpopen import to compat to allow working with python 3
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
https://gerrit.ovirt.org/#/c/48384/2/lib/vdsm/qemuimg.py
File lib/vdsm/qemuimg.py:
Line 222:
Line 223: cmd = cmdutils.wrap_command(cmd, with_nice=utils.NICENESS.HIGH,
Line 224: with_ioclass=utils.IOCLASS.IDLE)
Line 225: _log.debug(cmdutils.command_log_line(cmd, cwd=cwd))
Line 226: self._command = Popen(cmd, cwd=cwd, deathSignal=signal.SIGKILL)
We should first remove deathSignal, and add stdin=PIPE, stdout=PIPE, stderr=PIPE, because subprocess.Popen default is None, while CPopen default is PIPE.
Line 227: self._stream = utils.CommandStream(
Line 228: self._command, self._recvstdout, self._recvstderr)
Line 229:
Line 230: def _recvstderr(self, buffer):
--
To view, visit https://gerrit.ovirt.org/48384
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I181cd2e52706bfe7b24073d0f0eb42fec15ac490
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list