]> Cypherpunks repositories - gostls13.git/commit
runtime: check sched_getaffinity return value
authorMichael Marineau <mike@marineau.org>
Tue, 3 Jan 2017 08:15:05 +0000 (00:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Jan 2017 22:35:42 +0000 (22:35 +0000)
commit6a1cac27005f5e37c9c4acd0f63121e61b41ae3c
tree24988cbb76f33855b5c1678487245173bfaad99a
parentd698e614a21cd50055c7c5e7100069d2bcdb9b83
runtime: check sched_getaffinity return value

Android on ChromeOS uses a restrictive seccomp filter that blocks
sched_getaffinity, leading this code to index a slice by -errno.

Change-Id: Iec09a4f79dfbc17884e24f39bcfdad305de75b37
Reviewed-on: https://go-review.googlesource.com/34794
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/runtime/os_linux.go