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:07 UTC

[buildstream] 04/16: _signals.suspendable:"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 127070497b16505c1d80370294bb52114815581a
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Tue Oct 8 09:24:25 2019 +0100

    _signals.suspendable:"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 31982c1..ec598fc 100644
--- a/src/buildstream/_signals.py
+++ b/src/buildstream/_signals.py
@@ -146,17 +146,17 @@ def suspend_handler(sig, frame):
 def suspendable(suspend_callback, resume_callback):
     global suspendable_stack                  # pylint: disable=global-statement
 
-    outermost = bool(not suspendable_stack)
+    is_outermost = bool(not suspendable_stack)
     suspender = Suspender(suspend_callback, resume_callback)
     suspendable_stack.append(suspender)
 
-    if outermost:
+    if is_outermost:
         original_stop = signal.signal(signal.SIGTSTP, suspend_handler)
 
     try:
         yield
     finally:
-        if outermost:
+        if is_outermost:
             signal.signal(signal.SIGTSTP, original_stop)
 
         suspendable_stack.pop()