autocommit 2022-02-22 14:17:48 CET
This commit is contained in:
parent
145d1c15b7
commit
666e475032
5 changed files with 114 additions and 50 deletions
|
|
@ -157,7 +157,7 @@ impl BufFdOut {
|
|||
Ok(false)
|
||||
}
|
||||
|
||||
pub async fn flush2(&mut self, buf: &[u8], fds: &mut Vec<OwnedFd>) -> Result<(), BufFdError> {
|
||||
pub async fn flush2(&mut self, buf: &[u8], fds: &mut Vec<Rc<OwnedFd>>) -> Result<(), BufFdError> {
|
||||
let mut read_pos = 0;
|
||||
while read_pos < buf.len() {
|
||||
if self.flush_sync2(&mut read_pos, buf, fds)? {
|
||||
|
|
@ -171,7 +171,7 @@ impl BufFdOut {
|
|||
&mut self,
|
||||
read_pos: &mut usize,
|
||||
buf: &[u8],
|
||||
fds: &mut Vec<OwnedFd>,
|
||||
fds: &mut Vec<Rc<OwnedFd>>,
|
||||
) -> Result<bool, BufFdError> {
|
||||
let mut cmsg_len = 0;
|
||||
let mut fds_opt = None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue