summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-10 13:36:33 -0400
commitfcc0ba313b41437b9efc01438f133feb484b2e93 (patch)
tree8e735a4f62147d0595ac87285a8ea97354e158dc /src/tutorial/complex.source
parente91f00148d3f406f60b313db906ef64972cf9706 (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/tutorial/complex.source')
0 files changed, 0 insertions, 0 deletions