chiark / gitweb /
Use libc::dup2 and libc::read rather than nix versions
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Sep 2025 09:56:13 +0000 (10:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Sep 2025 10:06:48 +0000 (11:06 +0100)
commit7dab1b39947d93233d147893c553968d3bc45327
treed9fb0dc6b430a1bcf44a781c914231b39336933c
parent2734ce1e27ca43dc5bdf88e264f162986797a998
Use libc::dup2 and libc::read rather than nix versions

nix is doing io-safety which is an incompatible change.  It's hard to
write code which works with both versions of nix because BorrowedFd is
in Rust 1.66 which is higher than our MSRV.

Partially based on code from Peter Green.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
server/daemon.rs