diff options
author | 2023-01-12 16:20:11 +0100 | |
---|---|---|
committer | 2023-01-16 10:14:12 -1000 | |
commit | da91c19202420d61e3316f5a9d4c2d66bfbaff04 (patch) | |
tree | fcc192681670613df4e99746388356dc6dd610ec /util/bufferiszero.c | |
parent | tests/qtest/qom-test: Do not print tested properties by default (diff) | |
download | qemu-da91c19202420d61e3316f5a9d4c2d66bfbaff04.tar.xz qemu-da91c19202420d61e3316f5a9d4c2d66bfbaff04.zip |
linux-user: Clean up when exiting due to a signal
When exiting due to an exit() syscall, qemu-user calls
preexit_cleanup(), but this is currently not the case when exiting due
to a signal. This leads to various buffers not being flushed (e.g.,
for gprof, for gcov, and for the upcoming perf support).
Add the missing call.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112152013.125680-2-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'util/bufferiszero.c')
0 files changed, 0 insertions, 0 deletions