From c14abebd685328ac2302b47d55f796e8f8ca722a Mon Sep 17 00:00:00 2001 From: ardevd Date: Mon, 9 Jun 2025 22:31:01 +0200 Subject: [PATCH] refactor(syncthing): use named constant for SIGHUP (#10168) --- cmd/syncthing/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 9f60f70ce..6f8f91fd0 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -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)