Skip to content

Commit

Permalink
Fix forget_grandchild retain condition
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Michaelis <code@mgjm.de>
  • Loading branch information
mgjm committed Jul 12, 2023
1 parent f132a00 commit 225c05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conmon-rs/server/src/child_reaper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl ChildReaper {
grandchild_pid: u32,
) -> Result<()> {
let mut map = lock!(locked_grandchildren);
map.retain(|_, v| v.pid == grandchild_pid);
map.retain(|_, v| v.pid != grandchild_pid);
Ok(())
}

Expand Down

0 comments on commit 225c05f

Please sign in to comment.