Skip to content

Commit 185fa6c

Browse files
committed
Added back comment lost in copy/paste
1 parent feb48a4 commit 185fa6c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/system/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ fn set_cloexec(fd: c_int) -> io::Result<()> {
5656
/// Returns Ok(true) on success, Ok(false) if unsupported, Err on any other failure.
5757
#[cfg(not(target_os = "macos"))]
5858
fn try_close_range(lowfd: c_int) -> io::Result<bool> {
59+
// SAFETY: this function is safe to call:
60+
// - any errors while closing a specific fd will be effectively ignored
5961
#[allow(clippy::diverging_sub_expression)]
6062
let res = unsafe {
6163
'a: {

0 commit comments

Comments
 (0)