Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
As discussed in https://groups.google.com/forum/#!topic/golang-nuts/ievQGPz1R7k, https://golang.org/cl/4029053 dropped the documentation for the Pid field.
I also propose to extend the documentation with something like:
The value of Pid after the process has been waited/released is not specified.
The reason is that on UNIX systems, Release set Pid to -1, but not on Windows.
This means that a program can not check if Pid == -1 to determine if the process has been released.
The alternative is to change the Windows implementation.
The text was updated successfully, but these errors were encountered:
Seems like the first step is to document the Pid field at all.
Sorry, something went wrong.
I can help with this. Will have a PR ready today.
os: document Pid field from Process.
Explain what Pid field represents and that the value is not specified after waiting/releasing the process.
Change https://golang.org/cl/217105 mentions this issue: os: document Pid field from Process
os: document Pid field from Process
Successfully merging a pull request may close this issue.