mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 04:48:08 +02:00
Make ply_fd_has_data return false on hangups
This commit is contained in:
parent
73879cdf3c
commit
73ec13dacb
1 changed files with 3 additions and 1 deletions
|
|
@ -83,7 +83,9 @@ ply_fd_has_data (int fd)
|
|||
poll_data.revents = 0;
|
||||
result = poll (&poll_data, 1, 10);
|
||||
|
||||
return result == 1;
|
||||
return result == 1
|
||||
&& ((poll_data.revents & POLLIN)
|
||||
|| (poll_data.revents & POLLPRI));
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue