Merge pull request #27139 from openshift-cherrypick-robot/cherry-pick-26950-to-v5.6

[v5.6] Handle SIGPIPE to prevent machine stuck in Starting state
This commit is contained in:
openshift-merge-bot[bot]
2025-09-24 19:53:16 +00:00
committed by GitHub

View File

@ -483,7 +483,7 @@ func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDe
// if the machine cannot continue starting due to a signal, ensure the state
// reflects the machine is no longer starting
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM, syscall.SIGPIPE)
go func() {
sig, ok := <-signalChan
if ok {