mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 02:02:21 +02:00
qemurunner.py: handle getOutput() having nothing to read
(From OE-Core rev: 6f3a8e259ecf6934b32a264661422a6872aca2ef) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f4abfdeea175cfcadd6f73a69a676632ab4334a6) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b90687ad24
commit
4e28505e23
@@ -120,7 +120,10 @@ class QemuRunner:
|
||||
import fcntl
|
||||
fl = fcntl.fcntl(o, fcntl.F_GETFL)
|
||||
fcntl.fcntl(o, fcntl.F_SETFL, fl | os.O_NONBLOCK)
|
||||
return os.read(o.fileno(), 1000000).decode("utf-8")
|
||||
try:
|
||||
return os.read(o.fileno(), 1000000).decode("utf-8")
|
||||
except BlockingIOError:
|
||||
return ""
|
||||
|
||||
|
||||
def handleSIGCHLD(self, signum, frame):
|
||||
|
||||
Reference in New Issue
Block a user