Skip to content

Commit

Permalink
select except fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rennergade committed Feb 20, 2025
1 parent ef91183 commit cd70d39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/safeposix/syscalls/net_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3386,6 +3386,8 @@ impl Cage {
// the new copies
let new_readfds = &mut interface::FdSet::new();
let new_writefds = &mut interface::FdSet::new();
let clear_exceptfds = &mut interface::FdSet::new();

loop {
//we must block manually
// 1. iterate thru readfds
Expand Down Expand Up @@ -3441,6 +3443,11 @@ impl Cage {
writefds.unwrap().copy_from(&new_writefds);
}

// clear out except fds
if exceptfds.is_some() {
exceptfds.unwrap().copy_from(&clear_exceptfds);
}

return retval;
}

Expand Down

0 comments on commit cd70d39

Please sign in to comment.