diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-21 17:43:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-23 11:33:54 +0000 |
commit | 793f2f2e69cf3e4ef57a13f07538226b082cf868 (patch) | |
tree | cc7083bf1e0989d8aa5e95820fb51d3da090a06f /bitbake | |
parent | d95e988c83e92719602fe8e0897ea1a097181f98 (diff) | |
download | poky-793f2f2e69cf3e4ef57a13f07538226b082cf868.tar.gz |
bitbake: server/process: Fix select call
There was a report that bitbake -e | less would use 100% cpu when it shouldn't
really. The issue appears to be a bogus file descriptor in the select call. We
shouldn't be blocking if there is event data pending to a *reader* from server
context.
[YOCTO #7138]
(Bitbake rev: 8f166e1a0f3574ae7d1e917a8bb403b87bad15bf)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index d362f8d7fe..7671b26a80 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -115,7 +115,7 @@ class ProcessServer(Process, BaseImplServer): | |||
115 | self.quitout.recv() | 115 | self.quitout.recv() |
116 | self.quit = True | 116 | self.quit = True |
117 | 117 | ||
118 | self.idle_commands(.1, [self.event_queue._reader, self.command_channel, self.quitout]) | 118 | self.idle_commands(.1, [self.command_channel, self.quitout]) |
119 | except Exception: | 119 | except Exception: |
120 | logger.exception('Running command %s', command) | 120 | logger.exception('Running command %s', command) |
121 | 121 | ||