[bitbake-devel,2/8] process.py: Increase the timeout value for polling commands

Submitted by Shane Wang on March 22, 2012, 3:38 p.m.


Message ID a8247beb550a20eca62f5900303ae5d995931966.1332430442.git.shane.wang@intel.com
State New
Headers show

Commit Message

Shane Wang March 22, 2012, 3:38 p.m.
From: Dongxiao Xu <dongxiao.xu@intel.com>

The parseConfigurationFiles commands needs more time for piping,
thus change the polling timeout value from 0.5s to 1s.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
 bitbake/lib/bb/server/process.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index ba91336..946af05 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -45,7 +45,7 @@  class ServerCommunicator():
         while True:
             # don't let the user ctrl-c while we're waiting for a response
-                if self.connection.poll(.5):
+                if self.connection.poll(1):
                     return self.connection.recv()
                     return None