Index: src/pkg/os/exec_plan9.go |
=================================================================== |
--- a/src/pkg/os/exec_plan9.go |
+++ b/src/pkg/os/exec_plan9.go |
@@ -70,9 +70,8 @@ |
} |
// Wait waits for the Process to exit or stop, and then returns a |
-// Waitmsg describing its status and an error, if any. The options |
-// (WNOHANG etc.) affect the behavior of the Wait call. |
-func (p *Process) Wait(options int) (w *Waitmsg, err error) { |
+// Waitmsg describing its status and an error, if any. |
+func (p *Process) Wait() (w *Waitmsg, err error) { |
var waitmsg syscall.Waitmsg |
if p.Pid == -1 { |
@@ -95,20 +94,6 @@ |
return &Waitmsg{waitmsg}, nil |
} |
-// Wait waits for process pid to exit or stop, and then returns a |
-// Waitmsg describing its status and an error, if any. The options |
-// (WNOHANG etc.) affect the behavior of the Wait call. |
-// Wait is equivalent to calling FindProcess and then Wait |
-// and Release on the result. |
-func Wait(pid int, options int) (w *Waitmsg, err error) { |
- p, e := FindProcess(pid) |
- if e != nil { |
- return nil, e |
- } |
- defer p.Release() |
- return p.Wait(options) |
-} |
- |
// Release releases any resources associated with the Process. |
func (p *Process) Release() error { |
// NOOP for Plan 9. |