github.com/searKing/golang/go@v1.2.74/os/signal/signal_not_cgo.go (about) 1 // Copyright 2020 The searKing Author. 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 // +build !cgo 6 7 package signal 8 9 // setSig is fake for cgo 10 func setSig(sigs ...os.Signal) { 11 } 12 13 // dumpSignalTo is fake for cgo 14 func dumpSignalTo(fd int) { 15 } 16 17 // dumpStacktraceTo is fake for cgo 18 func dumpStacktraceTo(name string) { 19 } 20 21 // dumpPreviousStacktrace is fake for cgo 22 func dumpPreviousStacktrace() { 23 } 24 25 // previousStacktrace is fake for cgo 26 func previousStacktrace() string { 27 } 28 29 // setSigInvokeChain is fake for cgo 30 func setSigInvokeChain(from, to, wait, sleepInSeconds int) { 31 }