os: ErrProcessDone not defined on windows #42311
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Windows
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It reproduces on tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Use the error
os.ErrProcessDone
with GOOS=windows, which has just been exported in tip CL 242998.Playground link: https://play.golang.org/p/OMXQb0DeySn
What did you expect to see?
Code compiling and
p.Signal()
returningos.ErrProcessDone
What did you see instead?
.\main.go:23:13: undefined: os.ErrProcessDone
It seems that
os.ErrProcessDone
has only been exported for Unix, even though this same error can also be returned on Windows (see os/exec_windows.go#L64).It was probably forgotten in CL 242998 because the error was declared as a sentinel error on Unix and inlined on Windows.
The text was updated successfully, but these errors were encountered: