From: Brad Fitzpatrick Date: Fri, 7 Mar 2014 22:44:31 +0000 (-0800) Subject: os: document that Process.Wait only works on child processes X-Git-Tag: go1.3beta1~414 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a35b9e496073682cefdc0a533217683204ecb667;p=gostls13.git os: document that Process.Wait only works on child processes Fixes #7072 LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/71900045 --- diff --git a/src/pkg/os/doc.go b/src/pkg/os/doc.go index a954e313d1..bc700b6b45 100644 --- a/src/pkg/os/doc.go +++ b/src/pkg/os/doc.go @@ -39,6 +39,8 @@ func (p *Process) Kill() error { // Wait waits for the Process to exit, and then returns a // ProcessState describing its status and an error, if any. // Wait releases any resources associated with the Process. +// On most operating systems, the Process must be a child +// of the current process or an error will be returned. func (p *Process) Wait() (*ProcessState, error) { return p.wait() }