mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
unix: fix Pause on linux-arm64
Pause is a legacy syscall not available on linux-arm64. Use ppoll with all args as 0 to emulate - this is the way musl libc does Pause when the pause syscall isn't available. With the changes in syscall_linux* and regenerating zsyscall_linux*, this calling Pause on linux-arm64 works and returns EINTR as expected. Change-Id: I88236290313f18c742d826e759e86ff260a8b383 Reviewed-on: https://go-review.googlesource.com/22014 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
324e137580
commit
f64b50fbea
@@ -23,6 +23,7 @@ package unix
|
||||
//sys Lchown(path string, uid int, gid int) (err error)
|
||||
//sys Listen(s int, n int) (err error)
|
||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||
//sys Pause() (err error)
|
||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||
|
||||
Reference in New Issue
Block a user