commit | e0b2ad06fe422168e8abe1d7a436a4e2cbc3c0ac | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Sun Nov 07 00:27:22 2021 +0100 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Sun Nov 07 10:43:06 2021 +0000 |
tree | 800de5791e7291393d87fd5476deb842ccb121e2 | |
parent | ebca88c72f684ad732d846996557de967a566ca2 [diff] |
unix: fix finalizer fd close bug in TestOpenByHandleAt The raw fd is successively wrapped using os.NewFile, so dont defer close the raw fd, but instead use (*os.File).Close. Fixes golang/go#49403 Change-Id: I1f4b12536ff0abea6b1680a4ff932b7eefa57162 Reviewed-on: https://go-review.googlesource.com/c/sys/+/361995 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.