Lines 1005-1013
Link Here
|
1005 |
curclient = curoff + (i * (sizeof(fd_mask)*8)); |
1005 |
curclient = curoff + (i * (sizeof(fd_mask)*8)); |
1006 |
FD_ZERO(&tmask); |
1006 |
FD_ZERO(&tmask); |
1007 |
FD_SET(curclient, &tmask); |
1007 |
FD_SET(curclient, &tmask); |
1008 |
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); |
1008 |
do { |
|
|
1009 |
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); |
1010 |
} while (r < 0 && (errno == EINTR || errno == EAGAIN)); |
1009 |
if (r < 0) |
1011 |
if (r < 0) |
1010 |
CloseDownClient(clients[ConnectionTranslation[curclient]]); |
1012 |
if (ConnectionTranslation[curclient] > 0) |
|
|
1013 |
CloseDownClient(clients[ConnectionTranslation[curclient]]); |
1011 |
mask &= ~((fd_mask)1 << curoff); |
1014 |
mask &= ~((fd_mask)1 << curoff); |
1012 |
} |
1015 |
} |
1013 |
} |
1016 |
} |
Lines 1018-1027
Link Here
|
1018 |
curclient = XFD_FD(&savedAllClients, i); |
1021 |
curclient = XFD_FD(&savedAllClients, i); |
1019 |
FD_ZERO(&tmask); |
1022 |
FD_ZERO(&tmask); |
1020 |
FD_SET(curclient, &tmask); |
1023 |
FD_SET(curclient, &tmask); |
1021 |
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); |
1024 |
do { |
1022 |
if (r < 0 && GetConnectionTranslation(curclient) > 0) |
1025 |
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); |
1023 |
CloseDownClient(clients[GetConnectionTranslation(curclient)]); |
1026 |
} while (r < 0 && (errno == EINTR || errno == EAGAIN)); |
1024 |
} |
1027 |
if (r < 0) |
|
|
1028 |
if (GetConnectionTranslation(curclient) > 0) |
1029 |
CloseDownClient(clients[GetConnectionTranslation(curclient)]); |
1030 |
} |
1025 |
#endif |
1031 |
#endif |
1026 |
} |
1032 |
} |
1027 |
|
1033 |
|