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:12:13 +0000 (08:12 +0900)
commitd2b64fa2d81c1151cfda1235874dfd548382efb5
treed55c48fee932de1dbdc53164c9aad593d91570f5
parent68855bc9546ae21ab670cbe5d1dfc52e58d99260
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