pgsql: Force pgwin32_recv into nonblock mode when called from pgstat.c.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Force pgwin32_recv into nonblock mode when called from pgstat.c.
Дата
Msg-id E1STwi3-0002yh-Au@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Force pgwin32_recv into nonblock mode when called from pgstat.c.

This should get rid of the usage of pgwin32_waitforsinglesocket entirely,
and perhaps thereby remove the race condition that's evidently still
present on some versions of Windows.  The previous arrangement was a bit
unsafe anyway, since waiting at the recv() would not allow pgstat to notice
postmaster death.

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/pgstat.c |   12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Remove unnecessary pg_verifymbstr() calls from tsvector/query in
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: For testing purposes, reinsert a timeout in pgstat.c's wait call