You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implDropforFileDesc{fndrop(&mutself){// closing stdio file handles makes no sense, so never do it. Also, note// that errors are ignored when closing a file descriptor. The reason// for this is that if an error occurs we don't actually know if the// file descriptor was closed or not, and if we retried (for something// like EINTR), we might close another valid file descriptor (opened// after we closed ours.ifself.close_on_drop && self.fd > libc::STDERR_FILENO{let n = unsafe{ libc::close(self.fd)};if n != 0{println!("error {} when closing file descriptor {}", n,self.fd);}}}}