diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-03-15 14:57:49 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-03-15 14:57:49 +0100 |
commit | fd926ed4eea319b94bd0e09e093b90846bcb169b (patch) | |
tree | b0d526922ffd2cb4c819e74a26ce5188e54293e5 /proto | |
parent | e1c13a5a7b86f2ba09178300bad960224658c833 (diff) |
Poll: Prevent the improbable case of EAGAIN after POLLIN
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bfd/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bfd/io.c b/proto/bfd/io.c index fb150040..79ed9af7 100644 --- a/proto/bfd/io.c +++ b/proto/bfd/io.c @@ -576,7 +576,7 @@ sockets_close_fds(struct birdloop *loop) loop->close_scheduled = 0; } -int sk_read(sock *s); +int sk_read(sock *s, int revents); int sk_write(sock *s); static void @@ -605,7 +605,7 @@ sockets_fire(struct birdloop *loop) if (pfd->revents & POLLIN) while (e && *psk && (*psk)->rx_hook) - e = sk_read(*psk); + e = sk_read(*psk, 0); e = 1; if (pfd->revents & POLLOUT) |