aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/sigqueue.goc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-06-28 17:14:17 -0700
committerIan Lance Taylor <iant@golang.org>2010-06-28 17:14:17 -0700
commit807605d0fc8a4c4ca46458773bf5ca2263d2c1d9 (patch)
tree874a5f530fcc161ed8e863f5ff6753c8d587db33 /src/pkg/runtime/sigqueue.goc
parentd4384ff7f560ea3867749ccab4e6ad65767f0c6c (diff)
downloadgo-807605d0fc8a4c4ca46458773bf5ca2263d2c1d9.tar.xz
Only catch all signals if os/signal package imported.
Fixes #776. R=rsc CC=golang-dev https://golang.org/cl/1745041
Diffstat (limited to 'src/pkg/runtime/sigqueue.goc')
-rw-r--r--src/pkg/runtime/sigqueue.goc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/sigqueue.goc b/src/pkg/runtime/sigqueue.goc
index 46a3b1274a..572daab525 100644
--- a/src/pkg/runtime/sigqueue.goc
+++ b/src/pkg/runtime/sigqueue.goc
@@ -94,5 +94,6 @@ func Signame(sig int32) (name String) {
}
func Siginit() {
+ initsig(SigQueue);
sig.inuse = true; // enable reception of signals; cannot disable
}