1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

bitbake: utils.py: Add function to set nonblocking operation on a file descriptor

(Bitbake rev: ab6d71ebfcfb7bedc064b25f84647c8815096e5a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2012-06-22 12:53:16 +01:00
parent e05b423cc6
commit be98c1fc29
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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