Commit efe513c
committed
Don't assume
We caught this in practice with certain builds of `perf`.
This code seems pretty fishy, and I'd like to look into it further
later: it's not obvious to me why `waitpid` would raise if the PID no
longer exists. I would have expected `perf` to still be an unreaped
child at this point.
But, we do have ~identical logic in ferrying ^C to `perf` in
`src/trace.ml` too...
Signed-off-by: Tudor Brindus <[email protected]>perf is still alive after sending it SIGTERM
1 parent bacf0a0 commit efe513c
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
447 | 450 | | |
448 | 451 | | |
449 | 452 | | |
| |||
0 commit comments