You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
os/Process.Wait's comment says:
Wait waits for the Process to exit or stop, and then returns a ProcessState describing
its status and an error, if any.
at http://weekly.golang.org/pkg/os/#Process.Wait but rsc said:
https://groups.google.com/group/golang-dev/msg/cc712d1b2943ee65
According to that thread, the Windows implementation probably needs to change.
Which revision are you using? (hg identify)
tip
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
I don't see any problem here. os.Process.Wait indeed waits for process to exit. Please,
provide a small program to demonstrate, if you think otherwise.
If you think that godoc comment is wrong on Windows, tell us what it should say.
Thank you.
Alex
Wait doesn't wait for a process to stop on Linux, so the comment in exec_unix.go is
wrong. I was under the impression that the os package provides the same behaviour across
platforms, so unless Windows behaviour changes, that is no longer the case.
By "stop", I assume you mean with SIGSTOP, after which a process may be resumed with
SIGCONT. Wait should not return upon a SIGSTOP; the comment on the method probably needs
to remove the "or stop" because it leads to this confusion.
The text was updated successfully, but these errors were encountered: