diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 075c84985a..197308fd9d 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -895,6 +895,14 @@ class RunQueue: | |||
895 | if self.fakeworkerpipe: | 895 | if self.fakeworkerpipe: |
896 | self.fakeworkerpipe.read() | 896 | self.fakeworkerpipe.read() |
897 | 897 | ||
898 | def active_fds(self): | ||
899 | fds = [] | ||
900 | if self.workerpipe: | ||
901 | fds.append(self.workerpipe.input) | ||
902 | if self.fakeworkerpipe: | ||
903 | fds.append(self.fakeworkerpipe.input) | ||
904 | return fds | ||
905 | |||
898 | def check_stamp_task(self, task, taskname = None, recurse = False, cache = None): | 906 | def check_stamp_task(self, task, taskname = None, recurse = False, cache = None): |
899 | def get_timestamp(f): | 907 | def get_timestamp(f): |
900 | try: | 908 | try: |
@@ -972,7 +980,7 @@ class RunQueue: | |||
972 | (if the abort on failure configuration option isn't set) | 980 | (if the abort on failure configuration option isn't set) |
973 | """ | 981 | """ |
974 | 982 | ||
975 | retval = 0.5 | 983 | retval = True |
976 | 984 | ||
977 | if self.state is runQueuePrepare: | 985 | if self.state is runQueuePrepare: |
978 | self.rqexe = RunQueueExecuteDummy(self) | 986 | self.rqexe = RunQueueExecuteDummy(self) |
@@ -1375,7 +1383,7 @@ class RunQueueExecuteTasks(RunQueueExecute): | |||
1375 | 1383 | ||
1376 | if self.stats.active > 0: | 1384 | if self.stats.active > 0: |
1377 | self.rq.read_workers() | 1385 | self.rq.read_workers() |
1378 | return 0.5 | 1386 | return self.rq.active_fds() |
1379 | 1387 | ||
1380 | if len(self.failed_fnids) != 0: | 1388 | if len(self.failed_fnids) != 0: |
1381 | self.rq.state = runQueueFailed | 1389 | self.rq.state = runQueueFailed |