/
githubmirror
/
rclone
Обзор
Документация
Войти
/
githubmirror
/
rclone
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
cmd/siginfo_bsd.go
23 строки
434 B
albertony
build: update logging statements to make json log work - fixes #6038
06 сен 2024, 19:04
06 сен 2024, 19:04
bcdfad3
Код
Авторство
О чём код?
//go:build darwin || freebsd || netbsd || dragonfly || openbsd package cmd import ( "os" "os/signal" "syscall" "github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs/accounting" ) // SigInfoHandler creates SigInfo handler func SigInfoHandler() { signals := make(chan os.Signal, 1) signal.Notify(signals, syscall.SIGINFO) go func() { for range signals { fs.Printf(nil, "%v\n", accounting.GlobalStats()) } }() }