Re: epoll - funky copied code?

2006-08-12 Thread Henrik Nordstrom
lör 2006-08-12 klockan 11:22 +0200 skrev Henrik Nordstrom: > lör 2006-08-12 klockan 09:51 +1000 skrev Robert Collins: > > > That is - isn't the for loop completely irrelevant ? > > It is.. just a matter of programming style (complex if condition, vs > smaller conditions with break). This said I

Re: epoll - funky copied code?

2006-08-12 Thread Henrik Nordstrom
lör 2006-08-12 klockan 09:51 +1000 skrev Robert Collins: > That is - isn't the for loop completely irrelevant ? It is.. just a matter of programming style (complex if condition, vs smaller conditions with break). Regards Henrik signature.asc Description: Detta är en digitalt signerad meddeland

epoll - funky copied code?

2006-08-11 Thread Robert Collins
for (;;) { num = epoll_wait(kdpfd, pevents, SQUID_MAXFD, msec); statCounter.select_loops++; if (num >= 0) break; if (ignoreErrno(errno)) break; getCurrentTime(); PROF_stop(comm_check_incoming); return COMM_ERR