mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 08:14:03 +00:00
3fbdd12b04
Not just darwin
24 lines
381 B
Go
24 lines
381 B
Go
// +build darwin freebsd netbsd openbsd dragonfly
|
|
|
|
package restic
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"github.com/restic/restic/internal/debug"
|
|
)
|
|
|
|
func init() {
|
|
c := make(chan os.Signal)
|
|
signal.Notify(c, syscall.SIGUSR1)
|
|
signal.Notify(c, syscall.SIGINFO)
|
|
go func() {
|
|
for s := range c {
|
|
debug.Log("Signal received: %v\n", s)
|
|
forceUpdateProgress <- true
|
|
}
|
|
}()
|
|
}
|