aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_emerge/SpawnProcess.py')
-rw-r--r--lib/_emerge/SpawnProcess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/SpawnProcess.py b/lib/_emerge/SpawnProcess.py
index cda615ded..aef000e22 100644
--- a/lib/_emerge/SpawnProcess.py
+++ b/lib/_emerge/SpawnProcess.py
@@ -196,7 +196,7 @@ class SpawnProcess(SubProcess):
def _cancel(self):
SubProcess._cancel(self)
if self._main_task is not None:
- self._main_task.cancel()
+ self._main_task.done() or self._main_task.cancel()
self._cgroup_cleanup()
def _cgroup_cleanup(self):