diff options
| author | Yugo Nagata | 2016-06-15 06:24:21 +0000 |
|---|---|---|
| committer | Yugo Nagata | 2017-07-03 05:35:59 +0000 |
| commit | d1be197d655d3a110eefdecaed631cb993288e3b (patch) | |
| tree | 7467c95a73984ca6befe33fb28dc79007f05025d /main.c | |
| parent | 41ab703896934450bc2c635ad90aed2c99861c2a (diff) | |
Fix a posible hang during health checkingV3_1_STABLE
Helath checking was hang when any data wasn't sent
from backend after connect(2) succeeded. To fix this,
pool_check_fd() returns 1 when select(2) exits with
EINTR due to SIGALRM while health checkking is performed.
Reported and patch provided by harukat and some modification
by Yugo. Per bug #204.
backported from 3.4 or later;
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commitdiff;h=ed9f2900f1b611f5cfd52e8f758c3616861e60c0
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ static int not_detach = 0; /* non 0 if non detach option (-n) is given */ static int stop_sig = SIGTERM; /* stopping signal default value */ -static volatile sig_atomic_t health_check_timer_expired; /* non 0 if health check timer expired */ +volatile sig_atomic_t health_check_timer_expired; /* non 0 if health check timer expired */ POOL_REQUEST_INFO *Req_info; /* request info area in shared memory */ volatile sig_atomic_t *InRecovery; /* non 0 if recovery is started */ |
