src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/shell/signal_windows.go (about) 1 package shell 2 3 import ( 4 "io" 5 "os" 6 "syscall" 7 ) 8 9 func handleSignal(sig os.Signal, stderr io.Writer) { 10 switch sig { 11 // See https://pkg.go.dev/os/signal#hdr-Windows for the semantics of SIGTERM 12 // on Windows. 13 case syscall.SIGTERM: 14 os.Exit(0) 15 } 16 }