mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Go 1.18 (#592)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -38,7 +38,7 @@ func (s *ServeCmd) Run(ctx *Context) error {
|
||||
log.Info().Str("version", version).Msgf("Starting %s", ctx.Meta.Name)
|
||||
|
||||
// Handle os signals
|
||||
channel := make(chan os.Signal)
|
||||
channel := make(chan os.Signal, 1)
|
||||
signal.Notify(channel, os.Interrupt, utl.SIGTERM)
|
||||
go func() {
|
||||
sig := <-channel
|
||||
|
||||
Reference in New Issue
Block a user