mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
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:
parent
acce8268b6
commit
0770aaca35
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue