Fix wrong loop condition in pool_sleep().
authorYoshiyuki Asaba <y-asaba at pgfoundry.org>
Thu, 14 Feb 2008 04:02:28 +0000 (04:02 +0000)
committerYoshiyuki Asaba <y-asaba at pgfoundry.org>
Thu, 14 Feb 2008 04:02:28 +0000 (04:02 +0000)
main.c

diff --git a/main.c b/main.c
index 37b30bc914abd1215f94f5c29dfc80c6575a9e1d..25958c3f0aa82025f6ab7a325aac4eddfbacc4cf 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1111,8 +1111,7 @@ static void pool_sleep(unsigned int second)
        sleep_time.tv_usec = current_time.tv_usec;
 
        POOL_SETMASK(&UnBlockSig);
-       while (sleep_time.tv_sec > current_time.tv_sec ||
-                  sleep_time.tv_usec > current_time.tv_usec)
+       while (sleep_time.tv_sec > current_time.tv_sec)
        {
                struct timeval timeout;
                int r;