Oops, msync helper is broken.
parent
331695907b
commit
2f5062ac6c
|
@ -179,7 +179,7 @@ func dup2(oldfd int, newfd int) (err error) {
|
||||||
// Call msync(2) on a slice previously returned by mmap(2).
|
// Call msync(2) on a slice previously returned by mmap(2).
|
||||||
func msync(p []byte) (err error) {
|
func msync(p []byte) (err error) {
|
||||||
_, _, errno := unix.Syscall(
|
_, _, errno := unix.Syscall(
|
||||||
unix.SYS_MMAP,
|
unix.SYS_MSYNC,
|
||||||
uintptr(unsafe.Pointer(&p[0])),
|
uintptr(unsafe.Pointer(&p[0])),
|
||||||
uintptr(len(p)),
|
uintptr(len(p)),
|
||||||
0)
|
0)
|
||||||
|
|
Loading…
Reference in New Issue