mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
17b84cfd3a
start_build_worker writes one byte to the gate pipe to release a worker after the build lock records its group. When the worker dies between the record and that write, the pipe has no reader and the write raises SIGPIPE. The default disposition ends the builder at once, so its cleanup never runs: the Debian package tree is not restored and the lock is not released. Ignore SIGPIPE for that one write. The write then fails with EPIPE and start_build_worker reports the worker as not released, which is the existing failure path. build_worker_gate_sigpipe.t passes with this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>