]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: cooker.py: Catch when stdout doesn't have a file descriptor
authorMariano Lopez <mariano.lopez@linux.intel.com>
Tue, 23 Aug 2016 07:06:11 +0000 (07:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Sep 2016 17:09:50 +0000 (18:09 +0100)
commit355e4ec0b6ac20d5c66618e6df1db6064baceb57
tree260c4d9668e774f011e240d90deb815f9ca5106d
parentde83a8ab6d671dc87ec7f81ebcb868751b4d7355
bitbake: cooker.py: Catch when stdout doesn't have a file descriptor

Currently, there is a check to remove the TOSTOP attribute from
a tty to avoid hangs. It assumes that sys.stdout will have a
file descriptor and this is not always true, some IO classes
will throw exceptions when trying to get its file descriptor.

This will add a check for such cases and avoid throwing an
exception.

[YOCTO #10162]

(Bitbake rev: cb4f8f6efa28ef2b13bc738a0118b876baa15b3e)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py