aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/os/exec.go
diff options
context:
space:
mode:
authorYuval Pavel Zholkover <paulzhol@gmail.com>2011-07-13 16:29:37 -0700
committerRuss Cox <rsc@golang.org>2011-07-13 16:29:37 -0700
commit0bf36ce8fbc4c9468e7a253f6341a3bf7b425029 (patch)
tree4d40ea579fd3081fef3bf973e15dfe92e113086f /src/pkg/os/exec.go
parentdde435587d216b0e010f495cdebf92d27e680ce4 (diff)
downloadgo-0bf36ce8fbc4c9468e7a253f6341a3bf7b425029.tar.xz
os: Plan 9: add Process.Signal as a way to send notes.
Move the Signal interface from exec_posix.go to exec.go. Remove some unsused code from file_plan9.go. R=fshahriar, rsc CC=golang-dev https://golang.org/cl/4683044
Diffstat (limited to 'src/pkg/os/exec.go')
-rw-r--r--src/pkg/os/exec.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/os/exec.go b/src/pkg/os/exec.go
index 40e6c1774e..33e223fd29 100644
--- a/src/pkg/os/exec.go
+++ b/src/pkg/os/exec.go
@@ -46,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() }