pgpool2.git / summary / log / commit / refs
commit c61949fcd04e8b0dde1d127de7a72230c2bf5c79
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Tue Jan 19 07:23:28 2010 +0000
Fix do_child() so that check_stop_request() exits immediately
when smart shutdown signal has been sent.
This has been used to work in 2.2.
child.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/child.c b/child.c
index cb6e5f33a..43d9da8a0 100644
--- a/child.c
+++ b/child.c
@@ -172,10 +172,11 @@ void do_child(int unix_fd, int inet_fd)
int ssl_request = 0;
StartupPacket *sp;
+ idle = 1;
+
/* pgpool stop request already sent? */
check_stop_request();
- idle = 1;
accepted = 0;
/* perform accept() */
[parent: d40d0b6837b3]