]> Cypherpunks repositories - gostls13.git/commit
runtime: correct setNonblock on linux/arm64
authorJoel Sing <joel@sing.id.au>
Mon, 6 Jan 2020 17:31:23 +0000 (04:31 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 7 Jan 2020 02:56:05 +0000 (02:56 +0000)
commitedf3ec987ff51584c3bfdaeef7d0a24646d0fb4b
treea569c409b89207d0f49f72e9246b846c623cfe8a
parentf266cce6763aeb1b9200dcf193826dcfba5127b7
runtime: correct setNonblock on linux/arm64

The current code uses EOR (exclusive OR), which will result in the O_NONBLOCK
flag being toggled rather than being set. Other implementations use OR, hence
this is likely a bug.

Change-Id: I5dafa9c572452070bd37789c8a731ad6d04a86cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/212766
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/sys_linux_arm64.s