diff options
author | Günther Noack <gnoack@google.com> | 2019-12-02 19:27:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-12-02 20:12:54 +0000 |
commit | a18608a044afed86c789e541db65526b9ccacef9 (patch) | |
tree | d1875db22152da6137e10060ef437720e83cd590 | |
parent | e4c01f088bec6cc504a1e9dc85c97741c06b3868 (diff) | |
download | go-a18608a044afed86c789e541db65526b9ccacef9.tar.gz go-a18608a044afed86c789e541db65526b9ccacef9.zip |
os/exec: document that cmd.Start() sets the Process field
Change-Id: I4f41b680741e9bd2a4e8c094ecf3ce6226e48d12
GitHub-Last-Rev: 8f58bc6c4398cf739b33f8b5368926d6650059c3
GitHub-Pull-Request: golang/go#35934
Reviewed-on: https://go-review.googlesource.com/c/go/+/209558
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | src/os/exec/exec.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 19c7e2406a..0c17b7a35d 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -369,6 +369,8 @@ func lookExtensions(path, dir string) (string, error) { // Start starts the specified command but does not wait for it to complete. // +// If Start returns successfully, the c.Process field will be set. +// // The Wait method will return the exit code and release associated resources // once the command exits. func (c *Cmd) Start() error { |