Skip to content

Commit 09daa6a

Browse files
committed
Added back comment lost in copy/paste
1 parent 96bd3d0 commit 09daa6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)