diff --git a/nsock/src/engine_epoll.c b/nsock/src/engine_epoll.c index 3537f562b..8f7d96652 100644 --- a/nsock/src/engine_epoll.c +++ b/nsock/src/engine_epoll.c @@ -277,7 +277,7 @@ int epoll_loop(mspool *nsp, int msec_timeout) { #if HAVE_PCAP /* do non-blocking read on pcap devices that doesn't support select() - * If there is anything read, don't do usleep() or select(), just leave this loop */ + * If there is anything read, just leave this loop. */ if (pcap_read_on_nonselect(nsp)) { /* okay, something was read. */ } else @@ -292,7 +292,7 @@ int epoll_loop(mspool *nsp, int msec_timeout) { sock_err = socket_errno(); } - gettimeofday(&nsock_tod, NULL); /* Due to usleep or epoll delay */ + gettimeofday(&nsock_tod, NULL); /* Due to epoll delay */ } while (results_left == -1 && sock_err == EINTR); /* repeat only if signal occurred */ if (results_left == -1 && sock_err != EINTR) { diff --git a/nsock/src/engine_select.c b/nsock/src/engine_select.c index bd3992da3..817527727 100644 --- a/nsock/src/engine_select.c +++ b/nsock/src/engine_select.c @@ -314,7 +314,7 @@ int select_loop(mspool *nsp, int msec_timeout) { #if HAVE_PCAP /* do non-blocking read on pcap devices that doesn't support select() - * If there is anything read, don't do usleep() or select(), just leave this loop */ + * If there is anything read, just leave this loop. */ if (pcap_read_on_nonselect(nsp)) { /* okay, something was read. */ } else @@ -332,7 +332,7 @@ int select_loop(mspool *nsp, int msec_timeout) { sock_err = socket_errno(); } - gettimeofday(&nsock_tod, NULL); /* Due to usleep or select delay */ + gettimeofday(&nsock_tod, NULL); /* Due to select delay */ } while (results_left == -1 && sock_err == EINTR); /* repeat only if signal occurred */ if (results_left == -1 && sock_err != EINTR) {