mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: bitbake-worker: Handle pseudo shutdown in Ctrl+C case
If the build is interrupted, handle the shutdown of pseudo even in this case to avoid data corruption inside docker containers. [YOCTO #14555] (Bitbake rev: a2a04c6fe94bc56efcff299c669a151746e35916) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -287,10 +287,12 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
|
|||||||
try:
|
try:
|
||||||
if dry_run:
|
if dry_run:
|
||||||
return 0
|
return 0
|
||||||
ret = bb.build.exec_task(fn, taskname, the_data, cfg.profile)
|
try:
|
||||||
if fakeroot:
|
ret = bb.build.exec_task(fn, taskname, the_data, cfg.profile)
|
||||||
fakerootcmd = shlex.split(the_data.getVar("FAKEROOTCMD"))
|
finally:
|
||||||
subprocess.run(fakerootcmd + ['-S'], check=True, stdout=subprocess.PIPE)
|
if fakeroot:
|
||||||
|
fakerootcmd = shlex.split(the_data.getVar("FAKEROOTCMD"))
|
||||||
|
subprocess.run(fakerootcmd + ['-S'], check=True, stdout=subprocess.PIPE)
|
||||||
return ret
|
return ret
|
||||||
except:
|
except:
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user