mirror of
https://github.com/containers/podman.git
synced 2025-10-10 15:57:33 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user