mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 15:10:34 +01:00
bd72484994
It is maybe possible that, if a process's parent dies, the PID can be reused by a different process. This could cause an infinite loop in `is_descendant_of`. To fix this, break out of the loop when a cycle is detected. - [ ] Tests or screenshots needed? - [X] Code Reviewed - [X] Manual QA Release Notes: - N/A --------- Co-authored-by: Eric Holk <eric@zed.dev>