rclone/cmd/mountlib/sighup.go

15 lines
253 B
Go
Raw Normal View History

2021-09-09 14:25:25 +02:00
//go:build !plan9 && !js
package mountlib
import (
"os"
"os/signal"
"syscall"
)
// NotifyOnSigHup makes SIGHUP notify given channel on supported systems
func NotifyOnSigHup(sighupChan chan os.Signal) {
signal.Notify(sighupChan, syscall.SIGHUP)
}