aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-09-08 09:19:21 +0200
committerLukas Larsson <[email protected]>2014-09-08 09:37:19 +0200
commita1c09befb56cf8e73b722fe69ff87db65815bb9d (patch)
treed0f8c95de4efb2a663036fab268648993aa0c425
parent836cad20a02df5f370fe4be177dcfabd5467ceb2 (diff)
downloadotp-a1c09befb56cf8e73b722fe69ff87db65815bb9d.tar.gz
otp-a1c09befb56cf8e73b722fe69ff87db65815bb9d.tar.bz2
otp-a1c09befb56cf8e73b722fe69ff87db65815bb9d.zip
erts: Print that we are crashdumping earlier
Change so that we print that the we generating a crash dump before we actually generate it. So that if a huge crashdump is being dumped, the user knows that something is going on.
-rw-r--r--erts/emulator/beam/break.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c
index 08265b590d..5aee85174f 100644
--- a/erts/emulator/beam/break.c
+++ b/erts/emulator/beam/break.c
@@ -754,6 +754,8 @@ erl_crash_dump_v(char *file, int line, char* fmt, va_list args)
dumpname = "erl_crash.dump";
else
dumpname = &dumpnamebuf[0];
+
+ erts_fprintf(stderr,"\nCrash dump is being written to: %s...", dumpname);
fd = open(dumpname,O_WRONLY | O_CREAT | O_TRUNC,0640);
if (fd < 0)
@@ -804,7 +806,7 @@ erl_crash_dump_v(char *file, int line, char* fmt, va_list args)
erts_fdprintf(fd, "=end\n");
close(fd);
- erts_fprintf(stderr,"\nCrash dump was written to: %s\n", dumpname);
+ erts_fprintf(stderr,"done\n");
}
void