qtest: avoid pidfile and QEMU process leaks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v13 patches 22 repliesSuperseded
Changes in v2 from the cover letter
* Don't call qtest_end() from SIGABRT handler to avoid reentrancy [Paolo]
* Use sigemptyset() to avoid assumption about signal mask [Markus]
* if (fd != -1) close(fd) is no longer necessary [Markus]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | qtest: drop unused child_pid fieldtests/ | +0 | 0 replies | |
| 2/3 | qtest: make QEMU our direct child processtests/ | +5 | 0 replies | |
| 3/3 | qtest: kill QEMU process on g_assert() failuretests/ | +25 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Paolo Bonzini | Markus Armbruster |
|---|---|---|
| Series | R-b | |
| 1/3 | ||
| 2/3 | ||
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v2 0/3] qtest: avoid pidfile and QEMU process leaks
v2:
* Don't call qtest_end() from SIGABRT handler to avoid reentrancy [Paolo]
* Use sigemptyset() to avoid assumption about signal mask [Markus]
* if (fd != -1) close(fd) is no longer necessary [Markus]
This series prevents the following qtest issues:
1. Leaking the pidfile if QEMU startup fails, as discovered by Andreas Färber.
2. Leaking the QEMU process when a test case aborts.
Applying this series should make buildbots and manual "make check" users have a more pleasant and less leaky experience :).
Stefan Hajnoczi (3):
qtest: drop unused child_pid field
qtest: make QEMU our direct child process
qtest: kill QEMU process on g_assert() failure
tests/libqtest.c | 59 +++++++++++++++++++++++++------------------------------- 1 file changed, 26 insertions(+), 33 deletions(-)
Signature · 1 line
1.8.5.3