Re: [PATCH v3 1/3] linux-user: Clean up when exiting due to a signal

2023-01-11 Thread Richard Henderson
On 1/10/23 17:47, Ilya Leoshkevich wrote: 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

Re: [PATCH v3 1/3] linux-user: Clean up when exiting due to a signal

2023-01-11 Thread Alex Bennée
Ilya Leoshkevich writes: > 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

[PATCH v3 1/3] linux-user: Clean up when exiting due to a signal

2023-01-10 Thread Ilya Leoshkevich
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 Leos