Commit c7c2221
committed
fix(tests): reap orphaned descendants after each test
conftest sets PR_SET_CHILD_SUBREAPER so daemonized descendants reparent
to the pytest session, but the framework only waitpid()s the firecracker
PID. Other helpers (screen, ssh, vhost-user backends, socat-forked cat)
linger as zombies, and their queued signals stay charged against the
RLIMIT_SIGPENDING pool until reaped, which can cause later signal sends
to be dropped.
Add a per-test reap loop that drains exited descendants on teardown,
ordered after the microVM is killed via a microvm_factory dependency.
Signed-off-by: Riccardo Mancini <mancio@amazon.com>1 parent 4888aac commit c7c2221
1 file changed
Lines changed: 34 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
| |||
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
129 | 157 | | |
130 | 158 | | |
131 | 159 | | |
| |||
374 | 402 | | |
375 | 403 | | |
376 | 404 | | |
377 | | - | |
378 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
379 | 411 | | |
380 | 412 | | |
381 | 413 | | |
| |||
0 commit comments