WaitForSignalsDefault() now returns the signal
This commit is contained in:
parent
c2c52149cd
commit
d1e66a60bd
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue