Remove pool_log/pool_error calls from signal handlers.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 11 Jan 2017 00:38:16 +0000 (09:38 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 11 Jan 2017 00:38:16 +0000 (09:38 +0900)
commitc1c9f0668487abb47eb23f98cd0ff03c01dd9c45
treeae73d2e4ca234a4951856596dbf721f07757f129
parentb7443358e119385175ccc81a25fd3862aa31caab
Remove pool_log/pool_error calls from signal handlers.

pool_log/pool_error calls malloc(), which is not safe to be called
inside signal handlers, per discussion in [pgpool-hackers: 1950].  I
ifdef out them, rather than simply remove them in a hope we someday
find a better solution which make calling the functions inside signal
handlers.

Not that I did not touch exit_handler() of pgpool_main.c because
removing pool_log/pool_debug from them loses informative message like
"received smart shutdown request". Pgpool-II main process do not
heavily use malloc(), so the risk is minimum, I guess.
child.c
main.c