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