We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6ec25 commit 005c08cCopy full SHA for 005c08c
src/util_libc.rs
@@ -135,6 +135,6 @@ pub unsafe fn open_readonly(path: &str) -> Option<libc::c_int> {
135
// O_CLOEXEC works on all Unix targets except for older Linux kernels (pre
136
// 2.6.23), so we also use an ioctl to make sure FD_CLOEXEC is set.
137
#[cfg(target_os = "linux")]
138
- libc::ioctl(self.fd, libc::FIOCLEX);
+ libc::ioctl(fd, libc::FIOCLEX);
139
Some(fd)
140
}
0 commit comments