projects
/
pgpool1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eab61a
)
Fix wrong loop condition in pool_sleep().
author
Yoshiyuki Asaba
<y-asaba at pgfoundry.org>
Thu, 14 Feb 2008 04:02:28 +0000
(
04:02
+0000)
committer
Yoshiyuki Asaba
<y-asaba at pgfoundry.org>
Thu, 14 Feb 2008 04:02:28 +0000
(
04:02
+0000)
main.c
patch
|
blob
|
blame
|
history
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;