runtime: For c-archive/c-shared, install signal handlers synchronously.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 12 Feb 2016 22:10:09 +0000 (22:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 12 Feb 2016 22:10:09 +0000 (22:10 +0000)
commit54c9c975f182aacae65a925b86b8770e2503b950
tree0f1bf2665d8697cd161c1f9d5271e3db262ac73e
parent37064e3daf756e60b7725b8fee74ddb6785511ac
runtime: For c-archive/c-shared, install signal handlers synchronously.

    This is a port of https://golang.org/cl/18150 to the gccgo runtime.

    The previous behaviour of installing the signal handlers in a separate
    thread meant that Go initialization raced with non-Go initialization if
    the non-Go initialization also wanted to install signal handlers.  Make
    installing signal handlers synchronous so that the process-wide behavior
    is predictable.

    Reviewed-on: https://go-review.googlesource.com/19494

From-SVN: r233393
gcc/go/gofrontend/MERGE
libgo/runtime/go-libmain.c
libgo/runtime/proc.c
libgo/runtime/runtime.h
libgo/runtime/signal_unix.c