cmd: add siginfo handler
This commit is contained in:
parent
2a29f7f6c8
commit
de8c7d8e45
3 changed files with 31 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue