Cygwin: fhandler_fifo::hit_eof: improve reliability
Use the writer count introduced in the previous commit to help detect EOF. Drop the maybe_eof method, which is no longer needed.
This commit is contained in:
@@ -883,9 +883,8 @@ peek_fifo (select_record *s, bool from_select)
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
fh->maybe_eof (!nconnected);
|
||||
fh->fifo_client_unlock ();
|
||||
if (fh->maybe_eof () && fh->hit_eof ())
|
||||
if (!nconnected && fh->hit_eof ())
|
||||
{
|
||||
select_printf ("read: %s, saw EOF", fh->get_name ());
|
||||
gotone += s->read_ready = true;
|
||||
|
Reference in New Issue
Block a user