Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume
perf
is still alive after sending it SIGTERM
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]>
- Loading branch information