]> Cypherpunks repositories - gostls13.git/commit
runtime: do not handle signals before configuring handler
authorRuss Cox <rsc@golang.org>
Fri, 16 Mar 2012 02:17:54 +0000 (22:17 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 16 Mar 2012 02:17:54 +0000 (22:17 -0400)
commit2e4a035995e6d22871a27b7ad7c4b688a982b835
treee290a3e65f8983e7aed0999b9ed4c787170086bc
parent7694da1f3bd5cd62cf656bbe0b4b7123e29bbc08
runtime: do not handle signals before configuring handler

There was a small window during program initialization
where a signal could come in before the handling mechanisms
were set up to handle it.  Delay the signal-handler installation
until we're ready for the signals.

Fixes #3314.

R=golang-dev, dsymonds, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5833049
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.c