diff options
author | Elias Naur <elias.naur@gmail.com> | 2018-05-01 01:59:09 +0200 |
---|---|---|
committer | Elias Naur <elias.naur@gmail.com> | 2018-05-21 20:58:28 +0000 |
commit | c1a068012c67dfc794c0ecfd7d77db451d2cadac (patch) | |
tree | 3a95e608b79dc8e842972d7e58c066e9121e1aba /src/runtime/signal_unix.go | |
parent | c8d07295c55863c0246c2db3181eada3c9f4d63b (diff) | |
download | go-c1a068012c67dfc794c0ecfd7d77db451d2cadac.tar.gz go-c1a068012c67dfc794c0ecfd7d77db451d2cadac.zip |
runtime: remove darwin workaround for process-wide raise
Now that raise on darwin targets the current thread, we can remove
the workaround in dieFromSignal.
Change-Id: I1e468dc05e49403ee0bbe0a3a85e764c81fec4f2
Reviewed-on: https://go-review.googlesource.com/110476
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/signal_unix.go')
-rw-r--r-- | src/runtime/signal_unix.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go index 8bc73b7a23..6cd9f8ddb6 100644 --- a/src/runtime/signal_unix.go +++ b/src/runtime/signal_unix.go @@ -440,14 +440,6 @@ func dieFromSignal(sig uint32) { osyield() osyield() - // On Darwin we may still fail to die, because raise sends the - // signal to the whole process rather than just the current thread, - // and osyield just sleeps briefly rather than letting all other - // threads run. See issue 20315. Sleep longer. - if GOOS == "darwin" { - usleep(100) - } - // If we are still somehow running, just exit with the wrong status. exit(2) } |