1
0
mirror of https://github.com/golang/go synced 2024-11-23 19:30:05 -07:00

Document that cmd.Start() sets the Process field.

I think this is also what the comment next to the process filed means.
This commit is contained in:
Günther Noack 2019-12-02 16:07:22 +01:00 committed by GitHub
parent 8054b13536
commit 3aa520a89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {