projects
/
pgpool1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
594c097
)
Fix bug in health checking. PostgreSQL failure could not be detected.
author
Tatsuo Ishii
<ishii at sraoss.co.jp>
Fri, 25 Feb 2005 06:38:16 +0000
(06:38 +0000)
committer
Tatsuo Ishii
<ishii at sraoss.co.jp>
Fri, 25 Feb 2005 06:38:16 +0000
(06:38 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index 490cb72eb9bebfebdf9ef116b0e2cb690bf7cddf..dc5a6d491a7445ec06df4b8a69ae280cf73bcc77 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-295,10
+295,11
@@
int main(int argc, char **argv)
/*
* do actual health check. trying to connect to the backend
*/
+ errno = 0;
health_check_timer_expired = 0;
sts = health_check();
- if (
health_check_timer_expired
)
+ if (
errno != EINTR || (errno == EINTR && health_check_timer_expired)
)
{
if (sts == -1)
{