summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:28 -0400
commitde48dbade3930522dd33446b84dcc5407bec7f72 (patch)
tree153f8d4f3551e74e0b0659993863ca6d8f812551 /src/backend/executor
parent564b257e44397f9d77a928b22a02b76a4b1534ac (diff)
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/executor')
0 files changed, 0 insertions, 0 deletions