mirror of
https://github.com/rclone/rclone.git
synced 2024-11-08 01:25:14 +01:00
221dfc3882
Co-authored-by: Ivan Andreev <ivandeex@gmail.com>
15 lines
249 B
Go
15 lines
249 B
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)
|
|
}
|