Nir Soffer has uploaded a new change for review. Change subject: utils: Add missing Popen methods ......................................................................
utils: Add missing Popen methods AsyncProc should have a Popen like interface, but it is missing terminate() and send_signal() methods. These methods are useful for testing and for implementing graceful termination. Change-Id: I5d562663698d86b98b55d139e2691a0f51566ccf Signed-off-by: Nir Soffer <[email protected]> --- M lib/vdsm/commands.py 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/21/65321/1 diff --git a/lib/vdsm/commands.py b/lib/vdsm/commands.py index 9245a8b..f694788 100644 --- a/lib/vdsm/commands.py +++ b/lib/vdsm/commands.py @@ -297,6 +297,12 @@ def poll(self): return self.returncode + def send_signal(self, signo): + self._proc.send_signal(signo) + + def terminate(self): + self._proc.terminate() + def kill(self): try: self._proc.kill() -- To view, visit https://gerrit.ovirt.org/65321 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5d562663698d86b98b55d139e2691a0f51566ccf Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer <[email protected]> _______________________________________________ vdsm-patches mailing list -- [email protected] To unsubscribe send an email to [email protected]
