-
-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
Probably a bug, as far as I see this recover() just not working.
Lines 162 to 174 in 3cb546b
| go func() { | |
| if x := recover(); x != nil { | |
| log.Printf("[WARN] run time panic:\n%v", x) | |
| panic(x) | |
| } | |
| // catch signal and invoke graceful termination | |
| stop := make(chan os.Signal, 1) | |
| signal.Notify(stop, os.Interrupt, syscall.SIGTERM) | |
| <-stop | |
| log.Printf("[WARN] interrupt signal") | |
| cancel() | |
| }() |
Metadata
Metadata
Assignees
Labels
No labels