From 85a6df9d0d1fbc2eebed3854852e8196a6bf6252 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Wed, 10 Jun 2026 16:55:45 +0900 Subject: [PATCH] tail: drop outdated comment about <&- --- src/uu/tail/src/platform/unix.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/uu/tail/src/platform/unix.rs b/src/uu/tail/src/platform/unix.rs index 9f3b96d5101..d980f258cfd 100644 --- a/src/uu/tail/src/platform/unix.rs +++ b/src/uu/tail/src/platform/unix.rs @@ -45,12 +45,3 @@ pub fn supports_pid_checks(pid: Pid) -> bool { Err(_) => true, } } - -//pub fn stdin_is_bad_fd() -> bool { -// FIXME: Detect a closed file descriptor, e.g.: `tail <&-` -// this is never `true`, even with `<&-` because Rust's stdlib is reopening fds as /dev/null -// see also: https://github.com/uutils/coreutils/issues/2873 -// (gnu/tests/tail-2/follow-stdin.sh fails because of this) -// unsafe { libc::fcntl(fd, libc::F_GETFD) == -1 && get_errno() == libc::EBADF } -//false -//}