]> Cypherpunks repositories - gostls13.git/commit
runtime: fix signal handling on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Tue, 12 May 2015 16:20:04 +0000 (18:20 +0200)
committerDavid du Colombier <0intro@gmail.com>
Tue, 12 May 2015 16:35:46 +0000 (16:35 +0000)
commitf85a05581eadda1512a9bb5ae63098f3e1772f54
treef3e7a9b999af3daca1890633f57be406d9fb9c2e
parent18d98bc9cb34df680ae3dac89712366a9883789f
runtime: fix signal handling on Plan 9

Once added to the signal queue, the pointer passed to the
signal handler could no longer be valid. Instead of passing
the pointer to the note string, we recopy the value of the
note string to a static array in the signal queue.

Fixes #10784.

Change-Id: Iddd6837b58a14dfaa16b069308ae28a7b8e0965b
Reviewed-on: https://go-review.googlesource.com/9950
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/sigqueue_plan9.go