Commit 23ae7a70 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os/exec: clarify Cmd.Wait documentation a bit more explicitly

It already implied that Cmd.Wait is more than os.Process.Wait, but say
so explicitly.

See https://github.com/golang/go/issues/18874#issuecomment-309921486

Updates #18874

Change-Id: Iaa46defd776ae0be817d9f4466a99ac78cfd672b
Reviewed-on: https://go-review.googlesource.com/47650Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 9d2de778
...@@ -416,8 +416,10 @@ func (e *ExitError) Error() string { ...@@ -416,8 +416,10 @@ func (e *ExitError) Error() string {
return e.ProcessState.String() return e.ProcessState.String()
} }
// Wait waits for the command to exit. // Wait waits for the command to exit and waits for any copying to
// It must have been started by Start. // stdin or copying from stdout or stderr to complete.
//
// The command must have been started by Start.
// //
// The returned error is nil if the command runs, has no problems // The returned error is nil if the command runs, has no problems
// copying stdin, stdout, and stderr, and exits with a zero exit // copying stdin, stdout, and stderr, and exits with a zero exit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment