Fix non-windows/non-unix builds for bwlimit/SIGUSR2 feature and add a mutex

The race detector complained whenever SIGUSR2 was sent to rclone so
this adds a mutex to prevent concurrent access.
This commit is contained in:
Nick Craig-Wood
2016-10-30 19:20:16 +00:00
parent 5454f2abd0
commit e65059e431
3 changed files with 22 additions and 31 deletions
+10
View File
@@ -0,0 +1,10 @@
// Accounting and limiting reader
// Non-unix specific functions.
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
package fs
// startSignalHandler() is Unix specific and does nothing under non-Unix
// platforms.
func startSignalHandler() {}