mirror of
https://github.com/rclone/rclone.git
synced 2025-06-05 20:34:39 +08:00
cmd: add siginfo handler
This commit is contained in:

committed by
Nick Craig-Wood

parent
2a29f7f6c8
commit
de8c7d8e45
@ -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()) {
|
||||
|
Reference in New Issue
Block a user