diff options
| author | Wei Guangjing <vcc.163@gmail.com> | 2012-02-02 14:08:48 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-02 14:08:48 -0500 |
| commit | 16ce2f9369fd76334880a3883ca1def77d41c7e3 (patch) | |
| tree | d64117cf71c8f75f20a343e8fa71ed8f502cd7ab /src/pkg/os/exec.go | |
| parent | cdabb3d315691187f2f3c2ce74e8adee2c544002 (diff) | |
| download | go-16ce2f9369fd76334880a3883ca1def77d41c7e3.tar.xz | |
os: Process.handle use syscall.Handle
R=golang-dev, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5605050
Diffstat (limited to 'src/pkg/os/exec.go')
| -rw-r--r-- | src/pkg/os/exec.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/os/exec.go b/src/pkg/os/exec.go index 33e223fd29..6e0f168c76 100644 --- a/src/pkg/os/exec.go +++ b/src/pkg/os/exec.go @@ -12,11 +12,11 @@ import ( // Process stores the information about a process created by StartProcess. type Process struct { Pid int - handle int + handle uintptr done bool // process has been successfuly waited on } -func newProcess(pid, handle int) *Process { +func newProcess(pid int, handle uintptr) *Process { p := &Process{Pid: pid, handle: handle} runtime.SetFinalizer(p, (*Process).Release) return p |
