summaryrefslogtreecommitdiff
path: root/src/pkg/os/exec_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/exec_unix.go')
-rw-r--r--src/pkg/os/exec_unix.go8
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.