aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-08-12 14:04:29 +0200
committerRickard Green <[email protected]>2016-08-12 14:04:29 +0200
commit49722eb3e32b92563e576283d84531797c2a3627 (patch)
tree878b6bacc39f80b5a3c72e7571558792ea20be9d /erts/emulator/beam/erl_init.c
parentce260c34b555e9e2d74fe9491e9e3a20cfcd6c82 (diff)
parent19db7510939149206017c925032d390da9a83fe9 (diff)
downloadotp-49722eb3e32b92563e576283d84531797c2a3627.tar.gz
otp-49722eb3e32b92563e576283d84531797c2a3627.tar.bz2
otp-49722eb3e32b92563e576283d84531797c2a3627.zip
Merge branch 'maint-19' into maint
* maint-19: Updated OTP version Prepare release Avoid segfault when printing slogan after crashdumping Fix race causing lost wakeup on receive-after timeout
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 2239b6f045..07cfacf14a 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -2346,14 +2346,15 @@ erts_exit_vv(int n, int flush_async, char *fmt, va_list args1, va_list args2)
if (erts_mtrace_enabled)
erts_mtrace_exit((Uint32) n);
+ if (fmt != NULL && *fmt != '\0')
+ erl_error(fmt, args2); /* Print error message. */
+
/* Produce an Erlang core dump if error */
if (((n == ERTS_ERROR_EXIT && erts_no_crash_dump == 0) || n == ERTS_DUMP_EXIT)
&& erts_initialized) {
erl_crash_dump_v((char*) NULL, 0, fmt, args1);
}
- if (fmt != NULL && *fmt != '\0')
- erl_error(fmt, args2); /* Print error message. */
sys_tty_reset(n);
if (n == ERTS_INTR_EXIT)