restic/internal/progress_unix_with_siginfo.go
Alexander Neumann 6caeff2408 Run goimports
2017-07-23 14:21:03 +02:00

23 lines
348 B
Go

// +build darwin
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
}
}()
}