Skip to content

Commit 3aa520a

Browse files
authored
Document that cmd.Start() sets the Process field.
I think this is also what the comment next to the process filed means.
1 parent 8054b13 commit 3aa520a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/os/exec/exec.go

Lines changed: 2 additions & 0 deletions
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 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)