Move detach flags to platform specific

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-08-22 17:20:25 -07:00
parent f74cea71dd
commit 96a75ab1ab
7 changed files with 22 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
package testsuite
import "golang.org/x/sys/unix"
const umountflags int = unix.MNT_DETACH

View File

@@ -0,0 +1,5 @@
// +build !linux
package testsuite
const umountflags int = 0

View File

@@ -2,13 +2,7 @@
package testsuite
import (
"syscall"
"golang.org/x/sys/unix"
)
const umountflags int = unix.MNT_DETACH
import "syscall"
func clearMask() func() {
oldumask := syscall.Umask(0)

View File

@@ -1,7 +1,5 @@
package testsuite
const umountflags int = 0
func clearMask() func() {
return func() {}
}