diff options
Diffstat (limited to 'src/pkg/os/exec.go')
-rw-r--r-- | src/pkg/os/exec.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pkg/os/exec.go b/src/pkg/os/exec.go index e2234f14a..33e223fd2 100644 --- a/src/pkg/os/exec.go +++ b/src/pkg/os/exec.go @@ -13,10 +13,11 @@ import ( type Process struct { Pid int handle int + done bool // process has been successfuly waited on } func newProcess(pid, handle int) *Process { - p := &Process{pid, handle} + p := &Process{Pid: pid, handle: handle} runtime.SetFinalizer(p, (*Process).Release) return p } @@ -45,6 +46,11 @@ type ProcAttr struct { Sys *syscall.SysProcAttr } +// A Signal can represent any operating system signal. +type Signal interface { + String() string +} + // Getpid returns the process id of the caller. func Getpid() int { return syscall.Getpid() } |