Skip to content

Commit 23ae7a7

Browse files
committed
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 #18874 (comment) Updates #18874 Change-Id: Iaa46defd776ae0be817d9f4466a99ac78cfd672b Reviewed-on: https://go-review.googlesource.com/47650 Reviewed-by: Russ Cox <rsc@golang.org>
1 parent 9d2de77 commit 23ae7a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/os/exec/exec.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,10 @@ func (e *ExitError) Error() string {
416416
return e.ProcessState.String()
417417
}
418418

419-
// Wait waits for the command to exit.
420-
// It must have been started by Start.
419+
// Wait waits for the command to exit and waits for any copying to
420+
// stdin or copying from stdout or stderr to complete.
421+
//
422+
// The command must have been started by Start.
421423
//
422424
// The returned error is nil if the command runs, has no problems
423425
// copying stdin, stdout, and stderr, and exits with a zero exit

0 commit comments

Comments
 (0)