Skip to content

Commit 87392e7

Browse files
rleungxsylvestre
authored andcommitted
tail: follow new data from character devices
Poll character devices alongside native file watches so tail -f and -F continue reading after EOF. Keep owned device readers nonblocking, bound each read batch, and preserve inherited stdin flags. Watch device parents on native backends, reopen replacements by device and inode, and cover terminal input, aliases, replacement, and shutdown. Signed-off-by: rleungx <rleungx@gmail.com>
1 parent 85dd1ff commit 87392e7

7 files changed

Lines changed: 925 additions & 82 deletions

File tree

‎src/uu/tail/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ libc = { workspace = true }
3333
notify = { workspace = true }
3434

3535
[target.'cfg(unix)'.dependencies]
36-
rustix = { workspace = true, features = ["fs", "process"] }
36+
rustix = { workspace = true, features = ["event", "fs", "process"] }
3737

3838
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
3939
uucore = { workspace = true, features = ["pipes"] }

0 commit comments

Comments
 (0)