projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
958bdfa
)
(readtcp): go into fatal error state if poll reports error.
author
drepper
<drepper>
Mon, 8 Mar 1999 11:45:04 +0000
(11:45 +0000)
committer
drepper
<drepper>
Mon, 8 Mar 1999 11:45:04 +0000
(11:45 +0000)
sunrpc/svc_tcp.c
patch
|
blob
|
history
diff --git
a/sunrpc/svc_tcp.c
b/sunrpc/svc_tcp.c
index
cd5cecf
..
cd24f72
100644
(file)
--- a/
sunrpc/svc_tcp.c
+++ b/
sunrpc/svc_tcp.c
@@
-312,8
+312,11
@@
readtcp (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;
-
}
+ }
}
while ((pollfd.revents & POLLIN) == 0);