1
0
mirror of https://github.com/rclone/rclone.git synced 2025-03-23 04:34:32 +02:00
rclone/cmd/mountlib/sighup.go

16 lines
274 B
Go
Raw Normal View History

2021-09-09 15:25:25 +03:00
//go:build !plan9 && !js
// +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)
}