Skip to content

Commit

Permalink
Set nosigpipe on NetBSD and DragonFly BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 6, 2024
1 parent e27191f commit 5800dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ futures-io = { version = "0.3.28", default-features = false, features = ["std"]
futures-lite = { version = "2.0.0", default-features = false }
parking = "2.0.0"
polling = "3.0.0"
rustix = { version = "0.38.2", default-features = false, features = ["fs", "net", "std"] }
rustix = { version = "0.38.18", default-features = false, features = ["fs", "net", "std"] }
slab = "0.4.2"
tracing = { version = "0.1.37", default-features = false }

Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,9 @@ fn connect(
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "freebsd"
target_os = "freebsd",
target_os = "netbsd",
target_os = "dragonfly",
))]
rn::sockopt::set_socket_nosigpipe(&socket, true)?;

Expand Down

0 comments on commit 5800dd3

Please sign in to comment.