You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:09:08 UTC
[buildstream] 05/16: _signals.terminator: "outermost" ->
"is_outermost"
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch aevri/win32_receive_signals
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 23d1f1350baadabd6332de128bab318ed81b34e5
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Tue Oct 8 09:59:18 2019 +0100
_signals.terminator: "outermost" -> "is_outermost"
---
src/buildstream/_signals.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/buildstream/_signals.py b/src/buildstream/_signals.py
index ec598fc..a7f32d6 100644
--- a/src/buildstream/_signals.py
+++ b/src/buildstream/_signals.py
@@ -86,16 +86,16 @@ def terminator(terminate_func):
yield
return
- outermost = bool(not terminator_stack)
+ is_outermost = bool(not terminator_stack)
terminator_stack.append(terminate_func)
- if outermost:
+ if is_outermost:
original_handler = signal.signal(signal.SIGTERM, terminator_handler)
try:
yield
finally:
- if outermost:
+ if is_outermost:
signal.signal(signal.SIGTERM, original_handler)
terminator_stack.pop()