Check-in Number:
|
2777 | |
Date: |
2002-Nov-08 16:35:30 (local)
2002-Nov-08 15:35:30 (UTC) |
User: | rse |
Branch: | |
Comment: |
maintain size only at a single position |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/pth/pth_high.c 1.100 -> 1.101
--- pth_high.c 2002/11/08 12:38:39 1.100
+++ pth_high.c 2002/11/08 15:35:30 1.101
@@ -537,7 +537,7 @@
pfd[i].revents |= POLLRDNORM;
ok++;
/* support for POLLHUP */
- if (recv(pfd[i].fd, data, 64, MSG_PEEK) == -1) {
+ if (recv(pfd[i].fd, data, sizeof(data), MSG_PEEK) == -1) {
if ( errno == ESHUTDOWN || errno == ECONNRESET
|| errno == ECONNABORTED || errno == ENETRESET) {
pfd[i].revents &= ~(POLLIN);
|
|