diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2013-12-19 20:45:05 -0500 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-12-19 20:45:05 -0500 |
| commit | 0097d30c9715a524aabf62778927d2cac8b7dd35 (patch) | |
| tree | a8674527f0a4081005378bd60e6b7003d434c64a /src/pkg/runtime/os_linux.c | |
| parent | cbc565a80156a4dd4108ef5e1e170602415418a8 (diff) | |
| download | go-0097d30c9715a524aabf62778927d2cac8b7dd35.tar.xz | |
runtime: unblock signals when we try to core dump
Fixes #6988.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/44070046
Diffstat (limited to 'src/pkg/runtime/os_linux.c')
| -rw-r--r-- | src/pkg/runtime/os_linux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c index cb45fe8cee..130e1059ec 100644 --- a/src/pkg/runtime/os_linux.c +++ b/src/pkg/runtime/os_linux.c @@ -331,3 +331,9 @@ runtime·signalstack(byte *p, int32 n) st.ss_flags = SS_DISABLE; runtime·sigaltstack(&st, nil); } + +void +runtime·unblocksignals(void) +{ + runtime·rtsigprocmask(SIG_SETMASK, &sigset_none, nil, sizeof sigset_none); +} |
