]> Cypherpunks repositories - gostls13.git/commitdiff
os: document that StartProcess's argv starts with the binary name
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 29 Dec 2017 01:15:23 +0000 (01:15 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 30 Dec 2017 21:59:34 +0000 (21:59 +0000)
Fixes #23277

Change-Id: Idbe09913c95dc951b9b195eb7ff1e75d2bb4d63d
Reviewed-on: https://go-review.googlesource.com/85675
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/exec.go

index 1ec94df9e07a9691a54f01ffee1b07edc3fe57d3..58fc4dd59a8be17261a72aebed7816a4ea87a073 100644 (file)
@@ -85,7 +85,8 @@ func FindProcess(pid int) (*Process, error) {
 }
 
 // StartProcess starts a new process with the program, arguments and attributes
-// specified by name, argv and attr.
+// specified by name, argv and attr. The argv slice will become os.Args in the
+// new process, and normally starts with the program name.
 //
 // StartProcess is a low-level interface. The os/exec package provides
 // higher-level interfaces.