mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
bitbake: runqueue: Don't catch all child return codes
Catching all child exit status values is a bad idea. Setting an http sstate mirror is a great way to view that spectacularly break things. The previous change did have good code changes so don't revert those parts. (Bitbake rev: fa7ffb62d510ac1124ae7e08fa4d190a710f5b54) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -914,10 +914,11 @@ class RunQueue:
|
|||||||
workerpipe.close()
|
workerpipe.close()
|
||||||
|
|
||||||
def sigchild_exception(self, *args, **kwargs):
|
def sigchild_exception(self, *args, **kwargs):
|
||||||
pid = -1
|
for w in [self.worker, self.fakeworker]:
|
||||||
while pid:
|
if not w:
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
pid, status = os.waitpid(-1, os.WNOHANG)
|
pid, status = os.waitpid(w.pid, os.WNOHANG)
|
||||||
if pid != 0 and not self.teardown:
|
if pid != 0 and not self.teardown:
|
||||||
name = None
|
name = None
|
||||||
if self.worker and pid == self.worker.pid:
|
if self.worker and pid == self.worker.pid:
|
||||||
|
|||||||
Reference in New Issue
Block a user