From d1e66a60bd90490a37387d8f013f62385da92773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rasmussen?= Date: Thu, 29 Aug 2024 12:36:24 +0200 Subject: [PATCH] WaitForSignalsDefault() now returns the signal --- daemon/wait.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/wait.go b/daemon/wait.go index 40f480f..3ad96a5 100644 --- a/daemon/wait.go +++ b/daemon/wait.go @@ -25,6 +25,6 @@ func WaitForSignal(sig ...os.Signal) os.Signal { } // WaitForSignalsDefault waits until one of SIGINT, SIGQUIT or SIGTERM is received. -func WaitForSignalsDefault() { - WaitForSignal(Interrupt, Quit, Terminate) +func WaitForSignalsDefault() os.Signal { + return WaitForSignal(Interrupt, Quit, Terminate) }