diff --git a/CHANGELOG.md b/CHANGELOG.md index f65ebda..e6d56d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.4.2] - 2024-04-22 + +### Changed + +- `FD_CLOEXEC` bit mask definition fixed. The wrong definition effectively lead to `close-on-exec` flag not being set for all `listen_fds`. + ## [0.4.1] - 2022-08-31 ### Changed diff --git a/src/ffi.rs b/src/ffi.rs index 5101004..4c111a7 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -5,6 +5,6 @@ extern "C" { pub const F_GETFD: i32 = 1; pub const F_SETFD: i32 = 2; -pub const FD_CLOEXEC: i32 = 2; +pub const FD_CLOEXEC: i32 = 1; pub const EBADF: i32 = 9;