* 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>
|
||||
|
||||
* include/inttypes.h: New file.
|
||||
|
@ -586,11 +586,15 @@ pipe_cleanup (select_record *, select_stuff *stuff)
|
||||
int
|
||||
fhandler_pipe::ready_for_read (int fd, DWORD howlong)
|
||||
{
|
||||
if (!howlong)
|
||||
return fhandler_base::ready_for_read (fd, howlong);
|
||||
int res;
|
||||
if (howlong)
|
||||
res = true;
|
||||
else
|
||||
res = fhandler_base::ready_for_read (fd, howlong);
|
||||
|
||||
get_guard ();
|
||||
return true;
|
||||
if (res)
|
||||
get_guard ();
|
||||
return res;
|
||||
}
|
||||
|
||||
select_record *
|
||||
|
Loading…
Reference in New Issue
Block a user