signalKit

package
v2.1.48 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorExitSignal

func MonitorExitSignal(exitFunc func(os.Signal))

MonitorExitSignal 监听退出信号(拦截关闭信号)

缺陷: 部分信号(e.g. syscall.SIGSTOP、syscall.SIGKILL)无法被拦截.

@param exitFunc (1) 可以为nil

(2) 一般用于清理痕迹(毁尸灭迹)

Types

This section is empty.

Jump to

Keyboard shortcuts

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