Fix pgpool start message printed multiple times.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 15 Nov 2017 23:12:13 +0000 (08:12 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 15 Nov 2017 23:18:50 +0000 (08:18 +0900)
commit9e21ef9306dfda9a8df306f7a79b80c7ff046c7b
tree1d2bf5f1afaae7f05680731800e7e0f3c6d66d05
parent8758c3584b141d0e257c0dd9d10e8ca88d70f1d8
Fix pgpool start message printed multiple times.

When an exception occurs in the main loop, longjmp() gets called and
the variable "first" restored to the initial value. This make the
pgpool start message printed multiple times. This is harmless but
confusing. To fix that, add "volatile" qualifier so that the variable
is on the stack, rather than on a register.

Fix suggested by Muhammad Usama.
src/main/pgpool_main.c