Skip to content

Commit 7867aa8

Browse files
committed
Remove unused FileDesc::get_cloexec
1 parent 3200982 commit 7867aa8

File tree

1 file changed

+0
-5
lines changed
  • library/std/src/sys/unix

1 file changed

+0
-5
lines changed

library/std/src/sys/unix/fd.rs

-5
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ impl FileDesc {
197197
}
198198
}
199199

200-
#[cfg(target_os = "linux")]
201-
pub fn get_cloexec(&self) -> io::Result<bool> {
202-
unsafe { Ok((cvt(libc::fcntl(self.as_raw_fd(), libc::F_GETFD))? & libc::FD_CLOEXEC) != 0) }
203-
}
204-
205200
#[cfg(not(any(
206201
target_env = "newlib",
207202
target_os = "solaris",

0 commit comments

Comments
 (0)