• Ian Lance Taylor's avatar
    runtime: sleep a bit to let a bad signal be delivered · 75055de8
    Ian Lance Taylor authored
    When we raise a signal that was delivered to C code, it's possible that
    the kernel will not deliver it immediately. This is especially possible
    on Darwin where we use send the signal to the entire process rather than
    just the current thread. Sleep for a millisecond after sending the
    signal to give it a chance to be delivered before we restore the Go
    signal handler. In most real cases the program is going to crash at this
    point, so sleeping is kind of irrelevant anyhow.
    
    Fixes #14809.
    
    Change-Id: Ib2c0d2c4e240977fb4535dc1dd2bdc50d430eb85
    Reviewed-on: https://go-review.googlesource.com/33300
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    75055de8
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...