From: Brad Fitzpatrick Date: Fri, 29 Dec 2017 01:15:23 +0000 (+0000) Subject: os: document that StartProcess's argv starts with the binary name X-Git-Tag: go1.10beta2~79 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0770aaca35184b105af622d1c4b4dd95a8e338a8;p=gostls13.git os: document that StartProcess's argv starts with the binary name Fixes #23277 Change-Id: Idbe09913c95dc951b9b195eb7ff1e75d2bb4d63d Reviewed-on: https://go-review.googlesource.com/85675 Reviewed-by: Ian Lance Taylor --- diff --git a/src/os/exec.go b/src/os/exec.go index 1ec94df9e0..58fc4dd59a 100644 --- a/src/os/exec.go +++ b/src/os/exec.go @@ -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.