aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-17 10:16:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-17 10:16:12 -0700
commit13bf3396be9f9eef523c5b4be9127b05be626de0 (patch)
tree1acbf4118da8cb7dff2d88411ac8e1df22964676 /dm
parent43812e24cbb97208d149f419f0c3f61181ba4126 (diff)
try to flush stdio in the crash handler
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index d8421c95b0..3a7ba77a3d 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -185,6 +185,7 @@ static std::atomic<bool> in_signal_handler{false};
}
info("\n");
print_status();
+ fflush(stdout);
}
// Execute default exception handler... hopefully, exit.
return EXCEPTION_EXECUTE_HANDLER;
@@ -214,6 +215,7 @@ static std::atomic<bool> in_signal_handler{false};
for (int i = 0; i < count; i++) {
info(" %s\n", symbols[i]);
}
+ fflush(stdout);
}
_Exit(sig);
});