From be98c1fc299a3e5355e1d864c9a3f5d1fdf21d9c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 22 Jun 2012 12:53:16 +0100 Subject: bitbake: utils.py: Add function to set nonblocking operation on a file descriptor (Bitbake rev: ab6d71ebfcfb7bedc064b25f84647c8815096e5a) Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/runqueue.py') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 608aff8ad7..bd643ea767 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1724,7 +1724,7 @@ class runQueuePipe(): def __init__(self, pipein, pipeout, d): self.input = pipein pipeout.close() - fcntl.fcntl(self.input, fcntl.F_SETFL, fcntl.fcntl(self.input, fcntl.F_GETFL) | os.O_NONBLOCK) + bb.utils.nonblockingfd(self.input) self.queue = "" self.d = d -- cgit v1.2.3-54-g00ecf