summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/extern.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-16 20:20:50 -0800
committerRuss Cox <rsc@golang.org>2009-12-16 20:20:50 -0800
commit8fb06afa80e34b1e259e085f2c568b5f0a2c6fcd (patch)
tree384c6e1152e6be38443d2a62576eb1dbf1d3c677 /src/pkg/runtime/extern.go
parent4d23b94bdab653c4b0fc59adf2804a9f929d846f (diff)
downloadgolang-8fb06afa80e34b1e259e085f2c568b5f0a2c6fcd.tar.gz
runtime: if os/signal is not in use, crash on
most signals, so that ordinary programs can be killed, for example. Fixes issue 434. R=dsymonds1 CC=golang-dev, hoisie http://codereview.appspot.com/180064
Diffstat (limited to 'src/pkg/runtime/extern.go')
-rw-r--r--src/pkg/runtime/extern.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go
index 27cb73c55..85b165922 100644
--- a/src/pkg/runtime/extern.go
+++ b/src/pkg/runtime/extern.go
@@ -66,3 +66,7 @@ func Sigrecv() uint32
// Signame returns a string describing the signal, or "" if the signal is unknown.
func Signame(sig int32) string
+
+// Siginit enables receipt of signals via Sigrecv. It should typically
+// be called during initialization.
+func Siginit()