From 3aa520a89fbc659efe4a73cb77c9727be3c5ae61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Noack?= Date: Mon, 2 Dec 2019 16:07:22 +0100 Subject: [PATCH] Document that cmd.Start() sets the Process field. I think this is also what the comment next to the process filed means. --- src/os/exec/exec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 19c7e2406abb3..1a7f501fa54be 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 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 {