Changeset 171 for trunk/src/sh_forward.c
- Timestamp:
- Jul 8, 2008, 11:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_forward.c
r170 r171 2644 2644 sizeof(addr_peer.sin_addr))) 2645 2645 break; 2646 ++i;2647 2646 } 2648 2647 } … … 4916 4915 struct sigaction new_act; 4917 4916 struct sigaction old_act; 4917 4918 int setsize_fd; 4918 4919 4919 4920 SL_ENTER(_("sh_receive")); … … 4946 4947 * The POSIX lower limit on open files seems to be eight. 4947 4948 */ 4948 maxconn = get_open_max() - 6; 4949 maxconn = (((int)FD_SETSIZE) < maxconn) ? FD_SETSIZE : maxconn; 4949 maxconn = get_open_max() - 6; 4950 /* ugly fix for FreeBSD compiler warning; casting FD_SETSIZE in the 4951 * conditional expression does not suppress the warning... */ 4952 setsize_fd = (int)FD_SETSIZE; 4953 maxconn = (setsize_fd < maxconn) ? setsize_fd : maxconn; 4950 4954 4951 4955 if (maxconn < 0 || !sl_ok_muls(maxconn, sizeof(sh_conn_t)))
Note:
See TracChangeset
for help on using the changeset viewer.