Commit 2f5062ac authored by Aaron Jacobs's avatar Aaron Jacobs

Oops, msync helper is broken.

parent 33169590
......@@ -179,7 +179,7 @@ func dup2(oldfd int, newfd int) (err error) {
// Call msync(2) on a slice previously returned by mmap(2).
func msync(p []byte) (err error) {
_, _, errno := unix.Syscall(
unix.SYS_MMAP,
unix.SYS_MSYNC,
uintptr(unsafe.Pointer(&p[0])),
uintptr(len(p)),
0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment