mirror of
https://github.com/rclone/rclone
synced 2024-12-13 01:13:58 +01:00
15 lines
253 B
Go
15 lines
253 B
Go
//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)
|
|
}
|