Skip to content

Commit

Permalink
Use physical equality (not structural) for fds
Browse files Browse the repository at this point in the history
It seems it is not safe after all.
  • Loading branch information
reynir committed Nov 20, 2024
1 parent 3c637ce commit a52cca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/albatross_console.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let active = ref Vmm_core.String_map.empty
let read_console id name ring fd =
let update s =
let s = Option.value ~default:[] s in
let s' = List.filter (fun (_v, _u, fd') -> fd <> fd') s in
let s' = List.filter (fun (_v, _u, fd') -> fd != fd') s in
if s' = [] then
None
else
Expand Down

0 comments on commit a52cca7

Please sign in to comment.