aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/break.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2017-01-25 11:33:31 +0100
committerBjörn-Egil Dahlberg <[email protected]>2017-01-25 11:33:31 +0100
commit1706f9302887cf238862fb7d92ca8d77fcef71d3 (patch)
tree5c505a15e04766824c29d80d7bc87d2ca4e6d74a /erts/emulator/beam/break.c
parentc2a833811c768fc38b51a5241f55eb25786ac13e (diff)
parent1623d7a85908221a118356bec64693901405659d (diff)
downloadotp-1706f9302887cf238862fb7d92ca8d77fcef71d3.tar.gz
otp-1706f9302887cf238862fb7d92ca8d77fcef71d3.tar.bz2
otp-1706f9302887cf238862fb7d92ca8d77fcef71d3.zip
Merge branch 'egil/erts/fix-crashdump-suspend/OTP-14164' into maint
* egil/erts/fix-crashdump-suspend/OTP-14164: erts: Fix thread suspend in crashdump
Diffstat (limited to 'erts/emulator/beam/break.c')
-rw-r--r--erts/emulator/beam/break.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c
index dfbe1ced47..61907cc7ff 100644
--- a/erts/emulator/beam/break.c
+++ b/erts/emulator/beam/break.c
@@ -717,6 +717,8 @@ erl_crash_dump_v(char *file, int line, char* fmt, va_list args)
* We have to be very very careful when doing this as the schedulers
* could be anywhere.
*/
+ sys_init_suspend_handler();
+
for (i = 0; i < erts_no_schedulers; i++) {
erts_tid_t tid = ERTS_SCHEDULER_IX(i)->tid;
if (!erts_equal_tids(tid,erts_thr_self()))