Skip to content

Commit

Permalink
MAX_FDS only limit alive fd now
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Apr 16, 2024
1 parent 0e653fb commit c1ef6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ where
);
}
Message::Pipe(vm_id, args) => {
if self.next_fd_slot - FIRST_FD_SLOT >= MAX_FDS {
if self.fds.len() as u64 >= MAX_FDS {
let (_, machine) = self
.instantiated
.get_mut(&vm_id)
Expand Down

0 comments on commit c1ef6b5

Please sign in to comment.