diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/server/process.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 57fb58157e..2176167eb7 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -142,7 +142,7 @@ class BBCooker: | |||
142 | # read notified events and enqeue them | 142 | # read notified events and enqeue them |
143 | n.read_events() | 143 | n.read_events() |
144 | n.process_events() | 144 | n.process_events() |
145 | return True | 145 | return 1.0 |
146 | 146 | ||
147 | self.configuration.server_register_idlecallback(_process_inotify_updates, [self.confignotifier, self.notifier]) | 147 | self.configuration.server_register_idlecallback(_process_inotify_updates, [self.confignotifier, self.notifier]) |
148 | 148 | ||
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 7671b26a80..c9286ddba7 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -135,6 +135,9 @@ class ProcessServer(Process, BaseImplServer): | |||
135 | nextsleep = None | 135 | nextsleep = None |
136 | elif retval is True: | 136 | elif retval is True: |
137 | nextsleep = None | 137 | nextsleep = None |
138 | elif isinstance(retval, float): | ||
139 | if (retval < nextsleep): | ||
140 | nextsleep = retval | ||
138 | elif nextsleep is None: | 141 | elif nextsleep is None: |
139 | continue | 142 | continue |
140 | else: | 143 | else: |
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 17f3d9d906..75ec8556f4 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py | |||
@@ -242,6 +242,9 @@ class XMLRPCServer(SimpleXMLRPCServer, BaseImplServer): | |||
242 | del self._idlefuns[function] | 242 | del self._idlefuns[function] |
243 | elif retval is True: | 243 | elif retval is True: |
244 | nextsleep = 0 | 244 | nextsleep = 0 |
245 | elif isinstance(retval, float): | ||
246 | if (retval < nextsleep): | ||
247 | nextsleep = retval | ||
245 | else: | 248 | else: |
246 | fds = fds + retval | 249 | fds = fds + retval |
247 | except SystemExit: | 250 | except SystemExit: |