Skip to content

Commit 9dd5fb2

Browse files
Merge pull request #26950 from jiridostal/sigpipe-handler
Handle SIGPIPE to prevent machine stuck in Starting state
2 parents 26c3d0e + 59df078 commit 9dd5fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/machine/shim/host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDe
483483
// if the machine cannot continue starting due to a signal, ensure the state
484484
// reflects the machine is no longer starting
485485
signalChan := make(chan os.Signal, 1)
486-
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)
486+
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM, syscall.SIGPIPE)
487487
go func() {
488488
sig, ok := <-signalChan
489489
if ok {

0 commit comments

Comments
 (0)