Skip to content

Commit 005c08c

Browse files
authored
fix ioctl call
1 parent dd6ec25 commit 005c08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util_libc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ pub unsafe fn open_readonly(path: &str) -> Option<libc::c_int> {
135135
// O_CLOEXEC works on all Unix targets except for older Linux kernels (pre
136136
// 2.6.23), so we also use an ioctl to make sure FD_CLOEXEC is set.
137137
#[cfg(target_os = "linux")]
138-
libc::ioctl(self.fd, libc::FIOCLEX);
138+
libc::ioctl(fd, libc::FIOCLEX);
139139
Some(fd)
140140
}

0 commit comments

Comments
 (0)