]> Cypherpunks repositories - gostls13.git/commit
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 15 Jan 2016 05:57:41 +0000 (14:57 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 15 Apr 2016 21:20:45 +0000 (21:20 +0000)
commit6f59ccb052534f3293e9e0b0e02f35578901ef3c
treebef77fb7e7997522997a551b2dc9d6b2f5baf374
parent7345fa54c17e979c4dc9d5c26c385d77ad614592
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd

https://golang.org/cl/10173 intrduced msigsave, ensureSigM and
_SigUnblock but didn't enable the new signal save/restore mechanism for
SIG{HUP,INT,QUIT,ABRT,TERM} on DragonFly BSD, FreeBSD and OpenBSD.

At present, it looks like they have the implementation. This change
enables the new mechanism on DragonFly BSD, FreeBSD and OpenBSD the same
as Darwin, NetBSD.

Change-Id: Ifb4b4743b3b4f50bfcdc7cf1fe1b59c377fa2a41
Reviewed-on: https://go-review.googlesource.com/18657
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/cgo_linux_test.go
misc/cgo/test/cgo_unix_test.go
misc/cgo/test/sigprocmask.c [moved from misc/cgo/test/sigprocmask_linux.c with 97% similarity]
misc/cgo/test/sigprocmask.go [moved from misc/cgo/test/sigprocmask_linux.go with 92% similarity]
src/runtime/signal_dragonfly.go
src/runtime/signal_freebsd.go
src/runtime/signal_openbsd.go