diff options
Diffstat (limited to 'libgo/go/os/exec_posix.go')
-rw-r--r-- | libgo/go/os/exec_posix.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libgo/go/os/exec_posix.go b/libgo/go/os/exec_posix.go index 035b156cbdc..12b44e5f33b 100644 --- a/libgo/go/os/exec_posix.go +++ b/libgo/go/os/exec_posix.go @@ -26,7 +26,7 @@ func (sig UnixSignal) String() string { // // StartProcess is a low-level interface. The exec package provides // higher-level interfaces. -func StartProcess(name string, argv []string, attr *ProcAttr) (p *Process, err Error) { +func StartProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) { sysattr := &syscall.ProcAttr{ Dir: attr.Dir, Env: attr.Env, @@ -47,17 +47,17 @@ func StartProcess(name string, argv []string, attr *ProcAttr) (p *Process, err E } // Kill causes the Process to exit immediately. -func (p *Process) Kill() Error { +func (p *Process) Kill() error { return p.Signal(SIGKILL) } // Exec replaces the current process with an execution of the // named binary, with arguments argv and environment envv. -// If successful, Exec never returns. If it fails, it returns an Error. +// If successful, Exec never returns. If it fails, it returns an error. // // To run a child process, see StartProcess (for a low-level interface) // or the exec package (for higher-level interfaces). -func Exec(name string, argv []string, envv []string) Error { +func Exec(name string, argv []string, envv []string) error { if envv == nil { envv = Environ() } @@ -83,11 +83,11 @@ type Waitmsg struct { } // Wait waits for process pid to exit or stop, and then returns a -// Waitmsg describing its status and an Error, if any. The options +// 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) { +func Wait(pid int, options int) (w *Waitmsg, err error) { p, e := FindProcess(pid) if e != nil { return nil, e |