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