Move from libc read/write to nix read/write

Replace std from_raw_fd/into_raw_fd dance with nix write

Fixup notifyd build
This commit is contained in:
PolyMeilex
2024-01-20 18:45:36 +01:00
committed by ridiculousfish
parent 65cf6ada56
commit f3e8272c5d
11 changed files with 107 additions and 119 deletions

View File

@@ -294,7 +294,7 @@ fn readb(in_fd: RawFd) -> ReadbResult {
// Check stdin.
if fdset.test(in_fd) {
let mut arr: [u8; 1] = [0];
if read_blocked(in_fd, &mut arr) != 1 {
if read_blocked(in_fd, &mut arr) != Ok(1) {
// The terminal has been closed.
return ReadbResult::Eof;
}