refactor(syncthing): use named constant for SIGHUP (#10168)

This commit is contained in:
ardevd
2025-06-09 22:31:01 +02:00
committed by GitHub
parent b1a1a90045
commit c14abebd68

View File

@@ -613,8 +613,7 @@ func setupSignalHandling(app *syncthing.App) {
// Exit cleanly with "restarting" code on SIGHUP.
restartSign := make(chan os.Signal, 1)
sigHup := syscall.Signal(1)
signal.Notify(restartSign, sigHup)
signal.Notify(restartSign, syscall.SIGHUP)
go func() {
<-restartSign
app.Stop(svcutil.ExitRestart)