summary refs log tree commit diff
path: root/sunrpc/svc_unix.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-19 12:52:22 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-19 12:52:22 +0000
commitf1317ef5091309fd16948258d1e9d6fdd86c5b57 (patch)
tree9c614ba0c475e4d44c65d84ab3efb01fd06af654 /sunrpc/svc_unix.c
parentbb41a976a37574d81b6755b1d57c7ce47d8f9dcb (diff)
downloadglibc-f1317ef5091309fd16948258d1e9d6fdd86c5b57.tar.gz
glibc-f1317ef5091309fd16948258d1e9d6fdd86c5b57.tar.xz
glibc-f1317ef5091309fd16948258d1e9d6fdd86c5b57.zip
Update.
1998-11-19  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>

	* sunrpc/svc_unix.c (readunix): Check for POLLERR, POLLHUP and
	POLLNVAL.
Diffstat (limited to 'sunrpc/svc_unix.c')
-rw-r--r--sunrpc/svc_unix.c3
1 files changed, 3 insertions, 0 deletions
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;
 	}
     }