WaitForSignalsDefault() now returns the signal

This commit is contained in:
Søren Rasmussen 2024-08-29 12:36:24 +02:00
parent c2c52149cd
commit d1e66a60bd
Signed by: snr
SSH key fingerprint: SHA256:wwGTdUDKh+zxCdbhOjJ5jt5/zF36kbg44gQPN6D9t1w

View file

@ -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)
}