cmd: add siginfo handler

This commit is contained in:
kubatasiemski 2018-05-13 20:24:56 +02:00 committed by Nick Craig-Wood
parent 2a29f7f6c8
commit de8c7d8e45
3 changed files with 31 additions and 0 deletions

View file

@ -303,6 +303,7 @@ func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {
if showStats {
stopStats = StartStats()
}
SigInfoHandler()
for try := 1; try <= *retries; try++ {
err = f()
if !Retry || (err == nil && !accounting.Stats.Errored()) {