/*
- * $Id: comm_select.cc,v 1.84 2008/02/12 23:02:13 rousskov Exp $
+ * $Id: comm_select.cc,v 1.85 2008/02/17 10:15:55 serassio Exp $
*
* DEBUG: section 5 Socket Functions
*
getCurrentTime();
-#if USE_POLL
- statCounter.syscalls.polls++;
-#else
statCounter.syscalls.selects++;
-#endif
if (select(maxfd, &read_mask, &write_mask, NULL, &zero_tv) < 1)
return incoming_sockets_accepted;
for (;;) {
poll_time.tv_sec = msec / 1000;
poll_time.tv_usec = (msec % 1000) * 1000;
-#if USE_POLL
- statCounter.syscalls.polls++;
-#else
statCounter.syscalls.selects++;
-#endif
num = select(maxfd, &readfds, &writefds, NULL, &poll_time);
statCounter.select_loops++;
else
continue;
-#if USE_POLL
- statCounter.syscalls.polls++;
-#else
statCounter.syscalls.selects++;
-#endif
-
errno = 0;
if (!fstat(fd, &sb)) {