Skip to content

Commit

Permalink
fix telegraf swallowing panics in --test mode
Browse files Browse the repository at this point in the history
this defer function was causing telegraf to call os.Exit(0) instead of
panicking when it was supposed to.

closes #2341
  • Loading branch information
sparrc committed Feb 1, 2017
1 parent c0bbde0 commit 7842246
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ var srvc service.Service
type program struct{}

func reloadLoop(stop chan struct{}, s service.Service) {
defer func() {
if service.Interactive() {
os.Exit(0)
}
return
}()
reload := make(chan bool, 1)
reload <- true
for <-reload {
Expand Down

0 comments on commit 7842246

Please sign in to comment.