HomeFreeBSD

tail: Retry kevent if the system call was interrupted

Description

tail: Retry kevent if the system call was interrupted

kevent returns EINTR when I suspend / resume. This causes tail -f
and tail -F to exit with interrupt system call. Ignore this error
and try kevent again.

Sponsored by: Netflix

(cherry picked from commit ef6f20ce47613db7cc615b45f4b6fa1eb99ae0ba)

Details

Provenance
impAuthored on Feb 19 2023, 3:04 AM
desCommitted on Dec 13 2023, 4:39 PM
Parents
rG585762c3733f: Improve usability of head(1) and tail(1):
Branches
Unknown
Tags
Unknown