[oe-commits] [bitbake] branch master updated: bb/server/process: Handle EINTR on idle_commands select
git at git.openembedded.org
git at git.openembedded.org
Tue Jul 18 21:32:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository bitbake.
The following commit(s) were added to refs/heads/master by this push:
new 96bb174 bb/server/process: Handle EINTR on idle_commands select
96bb174 is described below
commit 96bb174325493764718c61c12c943c37b882cd61
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Mon Jul 17 16:45:12 2017 -0500
bb/server/process: Handle EINTR on idle_commands select
If a signal is sent like SIGWINCH the select could be interrupted
so ignore the InterruptError like in XMLRPC server [1].
[1]
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/server/xmlrpc.py#n307
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/server/process.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index f8d6767..a8ba468 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -186,7 +186,12 @@ class ProcessServer(Process, BaseImplServer):
nextsleep = self.next_heartbeat - now
if nextsleep is not None:
- select.select(fds,[],[],nextsleep)
+ try:
+ select.select(fds,[],[],nextsleep)
+ except InterruptedError:
+ # ignore EINTR error, nextsleep only used for wait
+ # certain time
+ pass
def runCommand(self, command):
"""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list