]> Cypherpunks repositories - gostls13.git/commitdiff
os: document that Process.Wait only works on child processes
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 7 Mar 2014 22:44:31 +0000 (14:44 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 7 Mar 2014 22:44:31 +0000 (14:44 -0800)
Fixes #7072

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/71900045

src/pkg/os/doc.go

index a954e313d135b78f2ebfc5a19c65c37170cf51f8..bc700b6b45b42891ae9174a5ee94e5085ff015d3 100644 (file)
@@ -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()
 }