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 <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2017-12-29 01:15:23 +00:00
parent acce8268b6
commit 0770aaca35

View 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.