summaryrefslogtreecommitdiff
path: root/src/timezone/strftime.c
diff options
context:
space:
mode:
authorTom Lane2014-03-14 00:59:42 +0000
committerTom Lane2014-03-14 00:59:42 +0000
commit6c461cb92f295788446fbd5659b92e279244c725 (patch)
tree4f021423c3807babeaf8441b6cad122db5afd146 /src/timezone/strftime.c
parentf70a78bc1f5556546d809a8164b9ba6a907f266f (diff)
Prevent interrupts while reporting non-ERROR elog messages.
This should eliminate the risk of recursive entry to syslog(3), which appears to be the cause of the hang reported in bug #9551 from James Morton. Arguably, the real problem here is auth.c's willingness to turn on ImmediateInterruptOK while executing fairly wide swaths of backend code. We may well need to work at narrowing the code ranges in which the authentication_timeout interrupt is enabled. For the moment, though, this is a cheap and reasonably noninvasive fix for a field-reported failure; the other approach would be complex and not necessarily bug-free itself. Back-patch to all supported branches.
Diffstat (limited to 'src/timezone/strftime.c')
0 files changed, 0 insertions, 0 deletions