diff options
Diffstat (limited to 'libgo/go/os/exec.go')
-rw-r--r-- | libgo/go/os/exec.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libgo/go/os/exec.go b/libgo/go/os/exec.go index f62caf9..33e223f 100644 --- a/libgo/go/os/exec.go +++ b/libgo/go/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 } @@ -37,6 +38,17 @@ type ProcAttr struct { // depending on the underlying operating system. A nil entry corresponds // to that file being closed when the process starts. Files []*File + + // Operating system-specific process creation attributes. + // Note that setting this field means that your program + // may not execute properly or even compile on some + // operating systems. + Sys *syscall.SysProcAttr +} + +// A Signal can represent any operating system signal. +type Signal interface { + String() string } // Getpid returns the process id of the caller. |