diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-06-10 10:59:18 +0200 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-06-10 10:59:18 +0200 | 
| commit | c29cace1e8f3260389ea78fa4ef86d80cd5e5275 (patch) | |
| tree | 947e4435053998a194caacab99bf614d8fd5bc78 /src/pkg/os/exec_unix.go | |
| parent | 56135c623a865c501ab31cc940c0e22ece2673f4 (diff) | |
| download | golang-c29cace1e8f3260389ea78fa4ef86d80cd5e5275.tar.gz | |
Imported Upstream version 2011.06.09upstream-weekly/2011.06.09
Diffstat (limited to 'src/pkg/os/exec_unix.go')
| -rw-r--r-- | src/pkg/os/exec_unix.go | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/pkg/os/exec_unix.go b/src/pkg/os/exec_unix.go index 8990d6a97..cf5ea9b61 100644 --- a/src/pkg/os/exec_unix.go +++ b/src/pkg/os/exec_unix.go @@ -45,6 +45,14 @@ func (p *Process) Wait(options int) (w *Waitmsg, err Error) {  	return w, nil  } +// Signal sends a signal to the Process. +func (p *Process) Signal(sig Signal) Error { +	if e := syscall.Kill(p.Pid, int(sig.(UnixSignal))); e != 0 { +		return Errno(e) +	} +	return nil +} +  // Release releases any resources associated with the Process.  func (p *Process) Release() Error {  	// NOOP for unix. | 
