Commit 0770aaca authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: document that StartProcess's argv starts with the binary name

Fixes #23277

Change-Id: Idbe09913c95dc951b9b195eb7ff1e75d2bb4d63d
Reviewed-on: https://go-review.googlesource.com/85675Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent acce8268
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment