pgsql: Fix Windows implementation of PGSemaphoreLock.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix Windows implementation of PGSemaphoreLock.
Дата
Msg-id E1SSXIR-0004YC-04@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/de48dbade3930522dd33446b84dcc5407bec7f72

Modified Files
--------------
src/backend/port/win32_sema.c |   20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix Windows implementation of PGSemaphoreLock.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: PL/Python: Fix slicing support for result objects for Python 3