Skip to content

Commit

Permalink
Document that cmd.Start() sets the Process field.
Browse files Browse the repository at this point in the history
I think this is also what the comment next to the process filed means.
  • Loading branch information
gnoack committed Dec 2, 2019
1 parent 8054b13 commit 3aa520a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/os/exec/exec.go
Expand Up @@ -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 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 {
Expand Down

0 comments on commit 3aa520a

Please sign in to comment.