summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-03-17 22:42:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-03-17 22:42:19 -0400
commit6ac7facdd3990baf47efc124e9d7229422a06452 (patch)
tree4eeba9882d35030cc9343b69fa5a18b0f480acbf /src/backend/access/gist/gistvacuum.c
parent3c07fbf40bd0276e4be02fc72cba6b1cd62da301 (diff)
downloadpostgresql-6ac7facdd3990baf47efc124e9d7229422a06452.tar.gz
Improve signal-handler lockout mechanism in timeout.c.
Rather than doing a fairly-expensive setitimer() call to prevent interrupts from happening, let's just invent a simple boolean flag that the signal handler is required to check. This is not only faster but considerably more robust than before, since the previous code effectively assumed that only ITIMER_REAL events would ever fire the SIGALRM handler, which is obviously something that can be broken easily by third-party code. Zoltán Böszörményi and Tom Lane
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions