aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:18 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:18 -0400
commit1b48f6af315e9db89aaf43e8c8c9de903294fbdf (patch)
tree358e30a37c55d3a5277f6c9a5559cdee8416246e /src/backend/access/gist
parent71ca53608de1763c0d82bf463580a30f634eba56 (diff)
downloadpostgresql-1b48f6af315e9db89aaf43e8c8c9de903294fbdf.tar.gz
postgresql-1b48f6af315e9db89aaf43e8c8c9de903294fbdf.zip
Fix Windows implementation of PGSemaphoreLock.
The original coding failed to reset ImmediateInterruptOK before returning, which would potentially allow a subsequent query-cancel interrupt to be accepted at an unsafe point. This is a really nasty bug since it's so hard to predict the consequences, but they could be unpleasant. Also, ensure that signal handlers are serviced before this function returns, even if the semaphore is already set. This should make the behavior more like Unix. Back-patch to all supported versions.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions