We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3badc7 commit 32969e5Copy full SHA for 32969e5
src/sys/unix.rs
@@ -261,7 +261,7 @@ impl Socket {
261
let fd = syscall!(socket(family, ty, protocol))?;
262
let fd = unsafe { Socket::from_raw_fd(fd) };
263
set_cloexec(fd.as_raw_fd())?;
264
- #[cfg(target_os = "macos")]
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
265
unsafe {
266
fd.setsockopt(libc::SOL_SOCKET, libc::SO_NOSIGPIPE, 1i32)?;
267
}
@@ -274,7 +274,7 @@ impl Socket {
274
let fds = unsafe { (Socket::from_raw_fd(fds[0]), Socket::from_raw_fd(fds[1])) };
275
set_cloexec(fds.0.as_raw_fd())?;
276
set_cloexec(fds.1.as_raw_fd())?;
277
278
279
fds.0
280
.setsockopt(libc::SOL_SOCKET, libc::SO_NOSIGPIPE, 1i32)?;
0 commit comments