summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
index a70377012b..61a520c6ce 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
@@ -11,9 +11,9 @@ from orm.models import Build, ToasterSetting, LogMessage, Target
11 11
12import os 12import os
13import logging 13import logging
14import time
15import sys 14import sys
16import traceback 15import traceback
16import signal
17 17
18logger = logging.getLogger("toaster") 18logger = logging.getLogger("toaster")
19 19
@@ -175,6 +175,8 @@ class Command(NoArgsCommand):
175 logger.warn("runbuilds: schedule exception %s" % str(e)) 175 logger.warn("runbuilds: schedule exception %s" % str(e))
176 176
177 def handle_noargs(self, **options): 177 def handle_noargs(self, **options):
178 signal.signal(signal.SIGUSR1, lambda sig, frame: None)
179
178 while True: 180 while True:
181 signal.pause()
179 self.runbuild() 182 self.runbuild()
180 time.sleep(1)