github.com/tencent/goom@v1.0.1/internal/hack/signal_unix.go (about)

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build aix || darwin || dragonfly || freebsd || js || linux || netbsd || openbsd || solaris
     6  // +build aix darwin dragonfly freebsd js linux netbsd openbsd solaris
     7  
     8  package hack
     9  
    10  import (
    11  	"os"
    12  	"syscall"
    13  )
    14  
    15  // SignalsToIgnore ignore the quit signal
    16  var SignalsToIgnore = []os.Signal{os.Interrupt, syscall.SIGQUIT}