]> Cypherpunks repositories - gostls13.git/commit
os: simplify Process.Release
authorIan Lance Taylor <iant@golang.org>
Mon, 23 Dec 2024 19:27:13 +0000 (11:27 -0800)
committerGopher Robot <gobot@golang.org>
Sat, 8 Feb 2025 01:10:44 +0000 (17:10 -0800)
commit646d285d7d0f5a8b18195e3fdfce7470219175c3
tree8c6ff5b7fd2294cd5711815e3e3466d956311261
parentbdbc5ca1bd0547d91441c4785854c82dbd852443
os: simplify Process.Release

Consolidate release/deactivation into a single doRelease method.
It needs to check GOOS for backward compatibility, but it's
simpler to keep all the logic in one place.

Change-Id: I242eb084d44d2682f862a8fbf55c410fb8c53358
Reviewed-on: https://go-review.googlesource.com/c/go/+/638580
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/os/exec.go
src/os/exec_plan9.go
src/os/exec_unix.go
src/os/exec_windows.go
src/os/pidfd_linux.go