Before this change asynchronous closes in cmount could cause sharing violations under Windows on Remove which manifest themselves frequently as test failures. This change lets the Remove be retried on a sharing violation under Windows.
10 lines
155 B
Go
10 lines
155 B
Go
//+build !windows
|
|
|
|
package local
|
|
|
|
import "os"
|
|
|
|
// Removes name, retrying on a sharing violation
|
|
func remove(name string) error {
|
|
return os.Remove(name)
|
|
}
|