dcrd/signal_syscall.go
Dave Collins db7eef97dc
main: Remove old style build constraints.
This removes the old style build constraints that were required for
versions of Go prior to version 1.17 now that now that the minimum
actively supported version of Go is 1.18.

Note that it intentionally does not remove them from the modules to
avoid needlessly breaking any consumers that might still be using them
from older versions of Go.
2022-12-05 09:04:01 -06:00

16 lines
421 B
Go

// Copyright (c) 2021-2022 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
//
//go:build windows || aix || android || darwin || dragonfly || freebsd || hurd || illumos || ios || linux || netbsd || openbsd || solaris
package main
import (
"syscall"
)
func init() {
interruptSignals = append(interruptSignals, syscall.SIGTERM, syscall.SIGHUP)
}