summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tail.c b/src/tail.c
index e2e7f4690..78022fc4b 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -367,9 +367,9 @@ check_output_alive (void)
struct pollfd pfd;
pfd.fd = STDOUT_FILENO;
pfd.events = pfd.revents = 0;
- pfd.events |= POLLRDBAND; /* Needed for illumos, macos. */
+ pfd.events |= POLLRDBAND; /* Needed for illumos, macOS. */
- if (poll (&pfd, 1, 0) >= 0 && (pfd.revents & (POLLERR | POLLHUP)))
+ if (poll (&pfd, 1, 0) > 0 && (pfd.revents & (POLLERR | POLLHUP)))
die_pipe ();
#else
struct timeval delay;