diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-06 09:50:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-06 09:50:41 +0300 |
| commit | fab5dc3e70434ea0abc7a0976487a1973b662331 (patch) | |
| tree | 61a06e166f225b69f09966e81ae725f960fd80be /cmd | |
| parent | 9f395a03f25941d8ed98ec43035688daa1e8877f (diff) | |
enable faster shutdown - useful for dgrep/dmap and dcat commands
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dtail/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dtail/main.go b/cmd/dtail/main.go index 820323c..d333825 100644 --- a/cmd/dtail/main.go +++ b/cmd/dtail/main.go @@ -97,8 +97,8 @@ func main() { dlog.Start(ctx, &wg, sourceProcess, config.Common.LogLevel) if checkHealth { + defer cancel() healthClient, _ := clients.NewHealthClient(args) - cancel() os.Exit(healthClient.Start(ctx, signal.InterruptCh(ctx))) } |
