diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2025-09-10 19:00:19 -0700 |
|---|---|---|
| committer | Kirill Kolyshkin <kolyshkin@gmail.com> | 2025-09-15 11:58:58 -0700 |
| commit | 3573227fe3fe8d141dbf06e257609a59871d5248 (patch) | |
| tree | 36e9503ef0846a301170cf44ceef5d4003258115 /src/os/exec.go | |
| parent | 68c6a73380e82a0ea9a93c1a75ab8a38f28f3a3d (diff) | |
| download | go-3573227fe3fe8d141dbf06e257609a59871d5248.tar.xz | |
os: add and use errProcessReleased
This error is already used in three places, so let's define it.
Change-Id: I73565d94aebcf3d5a278201d96839d82db85a2d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/702436
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/os/exec.go')
| -rw-r--r-- | src/os/exec.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/os/exec.go b/src/os/exec.go index 43b33fe944..e14434d8b5 100644 --- a/src/os/exec.go +++ b/src/os/exec.go @@ -14,8 +14,12 @@ import ( "time" ) -// ErrProcessDone indicates a [Process] has finished. -var ErrProcessDone = errors.New("os: process already finished") +var ( + // ErrProcessDone indicates a [Process] has finished. + ErrProcessDone = errors.New("os: process already finished") + // errProcessReleased indicates a [Process] has been released. + errProcessReleased = errors.New("os: process already released") +) // processStatus describes the status of a [Process]. type processStatus uint32 |
