// Copyright (c) 2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package main import ( "os" "syscall" "github.com/lbryio/lbry.go/v3/extras/stop" ) // initsignals sets the signals to be caught by the signal handler func initsignals(stopCh stop.Chan) { shutdownRequestChannel = stopCh interruptSignals = []os.Signal{os.Interrupt, syscall.SIGTERM} }