diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2023-11-16 01:42:39 -0800 |
---|---|---|
committer | Michael Pratt <mpratt@google.com> | 2024-02-21 21:27:03 +0000 |
commit | cdf3249d74c4187bc0c1737e1bb6ab1aa52c0b6f (patch) | |
tree | 1d1d02c2e659731e51349dadc12eace835631c43 /doc | |
parent | ccb6077d11e9e70cb17d3eaadaee4e673ee650c2 (diff) | |
download | go-cdf3249d74c4187bc0c1737e1bb6ab1aa52c0b6f.tar.gz go-cdf3249d74c4187bc0c1737e1bb6ab1aa52c0b6f.zip |
os: make FindProcess use pidfd on Linux
Amend FindProcess to use pidfdFind, and make it return ErrProcessDone
if pidfdFind is used and the process is not found.
Since this is a change in API, introduce GODEBUG osfinderr=0 setting
to disable the feature.
Change-Id: I724c6f622f0c99f21a70b864cf7cf2b8836869ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/542699
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/godebug.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/godebug.md b/doc/godebug.md index a7619c9a3d..9dbbab284d 100644 --- a/doc/godebug.md +++ b/doc/godebug.md @@ -126,6 +126,11 @@ for example, see the [runtime documentation](/pkg/runtime#hdr-Environment_Variables) and the [go command documentation](/cmd/go#hdr-Build_and_test_caching). +### Go 1.23 + +Go 1.23 enabled Linux pidfd support for process lookup. This feature can be +disabled by using the [`osfinderr` setting](/pkg/os#FindProcess). + ### Go 1.22 Go 1.22 adds a configurable limit to control the maximum acceptable RSA key size |