* select.cc (fhandler_pipe::ready_for_read): Assure that get_guard is called
for successful non-blocking pipe reads.
This commit is contained in:
parent
afef487c7d
commit
0eaf24fead
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-22 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* select.cc (fhandler_pipe::ready_for_read): Assure that get_guard is
|
||||||
|
called for successful non-blocking pipe reads.
|
||||||
|
|
||||||
2003-04-22 Corinna Vinschen <corinna@vinschen.de>
|
2003-04-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/inttypes.h: New file.
|
* include/inttypes.h: New file.
|
||||||
|
@ -586,11 +586,15 @@ pipe_cleanup (select_record *, select_stuff *stuff)
|
|||||||
int
|
int
|
||||||
fhandler_pipe::ready_for_read (int fd, DWORD howlong)
|
fhandler_pipe::ready_for_read (int fd, DWORD howlong)
|
||||||
{
|
{
|
||||||
if (!howlong)
|
int res;
|
||||||
return fhandler_base::ready_for_read (fd, howlong);
|
if (howlong)
|
||||||
|
res = true;
|
||||||
|
else
|
||||||
|
res = fhandler_base::ready_for_read (fd, howlong);
|
||||||
|
|
||||||
get_guard ();
|
if (res)
|
||||||
return true;
|
get_guard ();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
select_record *
|
select_record *
|
||||||
|
Loading…
Reference in New Issue
Block a user