Commit b9f516a
committed
test(process): reap signal helpers on failure
Guard the process-group helper and child immediately after fork so fatal test assertions cannot leave a paused helper or a gate-blocked child behind.
Disarm each guard only after its normal waitpid succeeds, preserving the existing success path while keeping later dunitest cases isolated from failure-path processes.
Signed-off-by: longjin <longjin@dragonos.org>1 parent 31d2262 commit b9f516a
1 file changed
Lines changed: 27 additions & 0 deletions
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
69 | 92 | | |
70 | 93 | | |
71 | 94 | | |
| |||
256 | 279 | | |
257 | 280 | | |
258 | 281 | | |
| 282 | + | |
259 | 283 | | |
260 | 284 | | |
261 | 285 | | |
| |||
309 | 333 | | |
310 | 334 | | |
311 | 335 | | |
| 336 | + | |
312 | 337 | | |
313 | 338 | | |
314 | 339 | | |
315 | 340 | | |
316 | 341 | | |
317 | 342 | | |
318 | 343 | | |
| 344 | + | |
319 | 345 | | |
320 | 346 | | |
321 | 347 | | |
| 348 | + | |
322 | 349 | | |
323 | 350 | | |
324 | 351 | | |
| |||
0 commit comments