cgo

package
v1.2.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cgo contains runtime support for code generated by the cgo tool. See the documentation for the cgo command for details on using cgo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpPreviousStacktrace

func DumpPreviousStacktrace()

DumpPreviousStacktrace dumps human readable stacktrace to fd, which is set by SetSignalDumpToFd.

func PreviousStacktrace

func PreviousStacktrace() string

PreviousStacktrace returns a human readable stacktrace

func SetBacktraceDumpToFile

func SetBacktraceDumpToFile(name string)

SetBacktraceDumpToFile set dump file path of stacktrace when signal is triggered, nop if not set.

func SetSig

func SetSig(sig int)

SetSig act as signal.Notify, which invokes the Go signal handler. https://godoc.org/os/signal#hdr-Go_programs_that_use_cgo_or_SWIG

func SetSigInvokeChain

func SetSigInvokeChain(from, to, wait, sleepInSeconds int)

SetSigInvokeChain sets a rule to raise signal to {to} and wait until {wait}, done with sleep {sleepInSeconds}s

func SetSignalDumpToFd

func SetSignalDumpToFd(fd int)

SetSignalDumpToFd redirect log to fd, -1 if not set; muted if < 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL