summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <bschubert15@bloomberg.net>2020-11-24 21:15:32 +0000
committerBenjamin Schubert <bschubert15@bloomberg.net>2020-12-04 10:36:43 +0000
commitc9847346c42c322cbd595a0de832711eba2e0f7d (patch)
tree7fc64a082ec4a15079e5d6907a6605ac2d19e7b6
parent6cec972cc7b3f51ecc22a6de8f4b636383f0f099 (diff)
downloadbuildstream-c9847346c42c322cbd595a0de832711eba2e0f7d.tar.gz
scheduler.py: Reconnect signal handlers soonerbschubert/no-multiprocessing
This reduces a race condition where a sigint received shortly after restarting the scheduler would cause the schedulert to crash.
-rw-r--r--src/buildstream/_scheduler/scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_scheduler/scheduler.py b/src/buildstream/_scheduler/scheduler.py
index b46314a9a..7acb062d0 100644
--- a/src/buildstream/_scheduler/scheduler.py
+++ b/src/buildstream/_scheduler/scheduler.py
@@ -264,8 +264,8 @@ class Scheduler:
# Restart the scheduler
#
def resume(self):
- self._resume_jobs()
self._connect_signals()
+ self._resume_jobs()
# stop()
#