Skip to content

Commit a18608a

Browse files
gnoackianlancetaylor
authored andcommitted
os/exec: document that cmd.Start() sets the Process field
Change-Id: I4f41b680741e9bd2a4e8c094ecf3ce6226e48d12 GitHub-Last-Rev: 8f58bc6 GitHub-Pull-Request: #35934 Reviewed-on: https://go-review.googlesource.com/c/go/+/209558 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent e4c01f0 commit a18608a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/os/exec/exec.go

+2
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ func lookExtensions(path, dir string) (string, error) {
369369

370370
// Start starts the specified command but does not wait for it to complete.
371371
//
372+
// If Start returns successfully, the c.Process field will be set.
373+
//
372374
// The Wait method will return the exit code and release associated resources
373375
// once the command exits.
374376
func (c *Cmd) Start() error {

0 commit comments

Comments
 (0)