diff options
Diffstat (limited to 'pym/_emerge/AsynchronousLock.py')
-rw-r--r-- | pym/_emerge/AsynchronousLock.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/AsynchronousLock.py b/pym/_emerge/AsynchronousLock.py index c47a20788..6e0a1ac2a 100644 --- a/pym/_emerge/AsynchronousLock.py +++ b/pym/_emerge/AsynchronousLock.py @@ -198,6 +198,10 @@ class _LockProcess(AbstractPollTask): raise AssertionError('lock process failed with returncode %s' \ % (proc.returncode,)) + def _cancel(self): + if self._proc is not None: + self._proc.cancel() + def _wait(self): if self.returncode is not None: return self.returncode |