diff options
| author | David du Colombier <0intro@gmail.com> | 2015-01-22 23:38:29 +0100 |
|---|---|---|
| committer | David du Colombier <0intro@gmail.com> | 2015-02-06 19:46:34 +0000 |
| commit | d5d4ab78195aac74bf1824c0b13cb91d2d7d3f07 (patch) | |
| tree | 551d1551db80317a541bd2d0d8692d7e59bc094d /src/runtime/sigqueue.go | |
| parent | 1b523384dc5c46e0a137d73f65dda636bfeda350 (diff) | |
| download | go-d5d4ab78195aac74bf1824c0b13cb91d2d7d3f07.tar.xz | |
os/signal, runtime: implement notes on Plan 9
This change is an implementation of the signal
runtime and os/signal package on Plan 9.
Contrary to Unix, on Plan 9 a signal is called
a note and is represented by a string.
For this reason, the sigsend and signal_recv
functions had to be reimplemented specifically
for Plan 9.
In order to reuse most of the code and internal
interface of the os/signal package, the note
strings are mapped to integers.
Thanks to Russ Cox for the early review.
Change-Id: I95836645efe21942bb1939f43f87fb3c0eaaef1a
Reviewed-on: https://go-review.googlesource.com/2164
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/runtime/sigqueue.go')
| -rw-r--r-- | src/runtime/sigqueue.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/sigqueue.go b/src/runtime/sigqueue.go index fbe3425fa6..5cfc926f67 100644 --- a/src/runtime/sigqueue.go +++ b/src/runtime/sigqueue.go @@ -24,6 +24,8 @@ // unnecessary rechecks of sig.mask, but it cannot lead to missed signals // nor deadlocks. +// +build !plan9 + package runtime import "unsafe" |
