From 3cc0ce4f657b541b545873bd9253b683731c0a09 Mon Sep 17 00:00:00 2001 From: Dominik Schulz Date: Sun, 4 Dec 2022 13:58:24 +0100 Subject: [PATCH] Ignore SIGURG (#2440) Alternative approach to #2379 Signed-off-by: Dominik Schulz Co-Authored-By: Donoban Signed-off-by: Dominik Schulz Co-authored-by: Donoban --- main_unix.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main_unix.go diff --git a/main_unix.go b/main_unix.go new file mode 100644 index 0000000000..974a9f762e --- /dev/null +++ b/main_unix.go @@ -0,0 +1,14 @@ +//go:build !windows +// +build !windows + +package main + +import ( + "os/signal" + "syscall" +) + +func init() { + // workaround for https://github.com/golang/go/issues/37942 + signal.Ignore(syscall.SIGURG) +}