summaryrefslogtreecommitdiff
path: root/src/lib/time/sleep.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/time/sleep.go')
-rw-r--r--src/lib/time/sleep.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/time/sleep.go b/src/lib/time/sleep.go
index f1f0d11ae..3bb76cf47 100644
--- a/src/lib/time/sleep.go
+++ b/src/lib/time/sleep.go
@@ -13,10 +13,5 @@ import (
// Sleep pauses the current goroutine for ns nanoseconds.
// It returns os.EINTR if interrupted.
func Sleep(ns int64) os.Error {
- var tv syscall.Timeval;
- syscall.Nstotimeval(ns, &tv);
- r1, r2, err := syscall.Syscall6(syscall.SYS_SELECT, 0, 0, 0, 0,
- int64(uintptr(unsafe.Pointer(&tv))), 0);
- return os.ErrnoToError(err);
+ return os.ErrnoToError(syscall.Sleep(ns));
}
-