mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
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:
committed by
ridiculousfish
parent
65cf6ada56
commit
f3e8272c5d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user