Commit b08b955
committed
Fix test 013: loop pcntl_waitpid until zombie is ready
After pipe EOF there's a small window before the child becomes a zombie.
A single WNOHANG waitpid can miss it, returning 0. Loop with 1ms delay
until the zombie is actually reapable.1 parent cc130df commit b08b955
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments