From 1751612f3360fcab848d5bf008a5520cb4689f0b Mon Sep 17 00:00:00 2001 From: Jiri Dostal Date: Mon, 1 Sep 2025 15:16:07 +0200 Subject: [PATCH] Handle SIGPIPE to prevent machine stuck in Starting state Fixes: #26949 Signed-off-by: Jiri Dostal --- pkg/machine/shim/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/machine/shim/host.go b/pkg/machine/shim/host.go index 4ebc41cf73..e0c1f832dd 100644 --- a/pkg/machine/shim/host.go +++ b/pkg/machine/shim/host.go @@ -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 {