]> Cypherpunks repositories - gostls13.git/commit
internal/poll: use atomic.Bool in DupCloseOnExec
authorTobias Klauser <tklauser@distanz.ch>
Wed, 1 Feb 2023 10:29:28 +0000 (11:29 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 2 Feb 2023 15:35:04 +0000 (15:35 +0000)
commit3c529c53676f809c7df55aac20e8b756462f0583
treea964fda74cb683bd3d58b621d6a35fca9da43894
parent2a3c695c4b8354c942a5096a85df5d355f4e1718
internal/poll: use atomic.Bool in DupCloseOnExec

Invert the meaning of the var to make use of the zero value.

Change-Id: If18db09896a67cb37cb3fe7dc0fb3493c6050a87
Reviewed-on: https://go-review.googlesource.com/c/go/+/463847
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/poll/fd_unix.go