From f1317ef5091309fd16948258d1e9d6fdd86c5b57 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 19 Nov 1998 12:52:22 +0000 Subject: Update. 1998-11-19 Thorsten Kukuk * sunrpc/svc_unix.c (readunix): Check for POLLERR, POLLHUP and POLLNVAL. --- sunrpc/svc_unix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sunrpc/svc_unix.c') diff --git a/sunrpc/svc_unix.c b/sunrpc/svc_unix.c index 4fba428926..0aa343654f 100644 --- a/sunrpc/svc_unix.c +++ b/sunrpc/svc_unix.c @@ -378,6 +378,9 @@ readunix (char *xprtptr, char *buf, int len) case 0: goto fatal_err; default: + if ((pollfd.revents & POLLERR) || (pollfd.revents & POLLHUP) + || (pollfd.revents & POLLNVAL)) + goto fatal_err; break; } } -- cgit 1.4.1