1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

tail: fix recent ineffective AIX change

* src/tail.c: Fix commit v8.30-40-gd5ab4cb which was ineffective.
Fixes http://bugs.gnu.org/33946
This commit is contained in:
Ayappan
2019-01-20 00:17:33 -08:00
committed by Pádraig Brady
parent d26dece5d8
commit 17983b2cb3

View File

@@ -339,6 +339,9 @@ named file in a way that accommodates renaming, removal and creation.\n\
static void
check_output_alive (void)
{
if (! monitor_output)
return;
#ifdef _AIX
/* select on AIX was seen to give a readable event immediately. */
struct pollfd pfd;
@@ -347,11 +350,7 @@ check_output_alive (void)
if (poll (&pfd, 1, 0) >= 0 && (pfd.revents & POLLERR))
raise (SIGPIPE);
#endif
if (! monitor_output)
return;
#else
struct timeval delay;
delay.tv_sec = delay.tv_usec = 0;
@@ -363,6 +362,7 @@ check_output_alive (void)
and implies an error condition on output like broken pipe. */
if (select (STDOUT_FILENO + 1, &rfd, NULL, NULL, &delay) == 1)
raise (SIGPIPE);
#endif
}
static bool