mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 18:04:55 +01:00
22a14a8c98
The --progress flag overrides operations.SyncPrintf in order to do its magic on stdout without interfering with other output. Before this change the syncFprintf routine in operations (which is used to print all output to stdout) was taking the operations.StdoutMutex and the printProgress function in the --progress routine was also attempting to take the same mutex causing a deadlock. This patch fixes the problem by moving the locking from the syncFprintf function to SyncPrintf. It is then up to the function overriding this to lock the StdoutMutex. This ensures the StdoutMutex can never cause a deadlock. |
||
---|---|---|
.. | ||
check_test.go | ||
check.go | ||
dedupe_test.go | ||
dedupe.go | ||
listdirsorted_test.go | ||
lsjson_test.go | ||
lsjson.go | ||
multithread_test.go | ||
multithread.go | ||
operations_internal_test.go | ||
operations_test.go | ||
operations.go | ||
rc_test.go | ||
rc.go | ||
reopen_test.go | ||
reopen.go |