Deleted Added
full compact
12c12
< SM_RCSID("@(#)$Id: listener.c,v 8.85.2.1 2002/08/09 22:13:36 gshapiro Exp $")
---
> SM_RCSID("@(#)$Id: listener.c,v 8.85.2.7 2002/12/10 04:02:25 ca Exp $")
19a20
> #include <sm/fdset.h>
76c77,83
<
---
> if (!SM_FD_OK_SELECT(listenfd))
> {
> smi_log(SMI_LOG_ERR, "%s: fd %d is larger than FD_SETSIZE %d",
> smfi->xxfi_name, listenfd, FD_SETSIZE);
> (void) smutex_unlock(&L_Mutex);
> return MI_FAILURE;
> }
485c492
< name, len, sm_errstring(errno));
---
> name, (int) len, sm_errstring(errno));
633c640
< "MI_SLEEP(): select() returned non-zero result %d, errno = %d", \
---
> "MI_SLEEP(): select() returned non-zero result %d, errno = %d", \
635a643
> break; \
671,678d678
<
< if (listenfd >= FD_SETSIZE)
< {
< smi_log(SMI_LOG_ERR, "%s: fd %d is larger than FD_SETSIZE %d",
< smfi->xxfi_name, listenfd, FD_SETSIZE);
< (void) smutex_unlock(&L_Mutex);
< return MI_FAILURE;
< }
680d679
<
757a757,764
> /* check if acceptable for select() */
> if (ValidSocket(connfd) && !SM_FD_OK_SELECT(connfd))
> {
> (void) closesocket(connfd);
> connfd = INVALID_SOCKET;
> save_errno = ERANGE;
> }
>