diff -u hybserv-1.9.2/debian/changelog hybserv-1.9.2/debian/changelog --- hybserv-1.9.2/debian/changelog +++ hybserv-1.9.2/debian/changelog @@ -1,3 +1,9 @@ +hybserv (1.9.2-4.1retrosnub1) lucid; urgency=low + + * Don't wake up every 200 microseconds. + + -- Malcolm Scott Tue, 15 Feb 2011 00:54:39 +0000 + hybserv (1.9.2-4.1) unstable; urgency=high * Non-maintainer upload by the security team only in patch2: unchanged: --- hybserv-1.9.2.orig/src/sock.c +++ hybserv-1.9.2/src/sock.c @@ -499,7 +499,6 @@ { int SelectResult; - struct timeval TimeOut; struct DccUser *dccptr; struct PortInfo *tempport; @@ -602,9 +601,6 @@ FD_ZERO(&readfds); FD_ZERO(&writefds); - TimeOut.tv_sec = 0L; - TimeOut.tv_usec = 200L; - if (currenthub && (HubSock != NOSOCKET)) { if (IsHubConnect(currenthub)) @@ -633,7 +629,7 @@ if (tempport->socket != NOSOCKET) FD_SET(tempport->socket, &readfds); - SelectResult = select(FD_SETSIZE, &readfds, &writefds, NULL, &TimeOut); + SelectResult = select(FD_SETSIZE, &readfds, &writefds, NULL, NULL); if (SelectResult > 0) { /* something happened */