delete sigint handler since it doesn't do anything

This commit is contained in:
akulij 2025-02-27 22:13:45 +00:00
parent d924708a1c
commit bd018136d6

View File

@ -101,27 +101,6 @@ func main() {
} }
func setSystemSignalHandlers() { func setSystemSignalHandlers() {
go handleSigint()
}
func handleSigint() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
state, err := term.GetState(int(os.Stdout.Fd()))
if err != nil {
fmt.Fprint(os.Stderr, "Failed to save state of the terminal")
return
}
<-c
err = term.Restore(int(os.Stdout.Fd()), state)
if err != nil {
errorf("Failed to restore state of the terminal")
}
os.Exit(1)
} }
func parseFlags() (*Flags, error) { func parseFlags() (*Flags, error) {