]> Cypherpunks repositories - gostls13.git/commit
os/signal, runtime: implement notes on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Thu, 22 Jan 2015 22:38:29 +0000 (23:38 +0100)
committerDavid du Colombier <0intro@gmail.com>
Fri, 6 Feb 2015 19:46:34 +0000 (19:46 +0000)
commitd5d4ab78195aac74bf1824c0b13cb91d2d7d3f07
tree551d1551db80317a541bd2d0d8692d7e59bc094d
parent1b523384dc5c46e0a137d73f65dda636bfeda350
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>
src/os/signal/signal.go
src/os/signal/signal_plan9.go [new file with mode: 0644]
src/os/signal/signal_plan9_test.go [new file with mode: 0644]
src/os/signal/signal_stub.go [deleted file]
src/runtime/os3_plan9.go
src/runtime/sigqueue.go
src/runtime/sigqueue_plan9.go [new file with mode: 0644]