1 Star 0 Fork 0

sun/common_pkg

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
notify.go 295 Bytes
一键复制 编辑 原始数据 按行查看 历史
yzsunjianguo 提交于 2023-09-19 21:35 +08:00 . init
//go:build linux || darwin
// +build linux darwin
package stat
import (
"fmt"
"syscall"
)
// nolint
func init() {
go func() {
for {
select {
case <-notifyCh:
err := syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
if err != nil {
fmt.Println(err)
}
}
}
}()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jianguosun_admin/common_pkg.git
git@gitee.com:jianguosun_admin/common_pkg.git
jianguosun_admin
common_pkg
common_pkg
v1.0.4

搜索帮助