Skip site navigation (1) Skip section navigation (2)

pgsql: Force pgwin32_recv into nonblock mode when called frompgstat.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Force pgwin32_recv into nonblock mode when called frompgstat.c.
Date: 2012-05-14 14:57:15
Message-ID: E1STwi3-0002yh-Au@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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 by date

Next:From: Tom LaneDate: 2012-05-14 19:03:21
Subject: pgsql: For testing purposes,reinsert a timeout in pgstat.c's wait call
Previous:From: Heikki LinnakangasDate: 2012-05-14 11:36:27
Subject: pgsql: Remove unnecessary pg_verifymbstr() calls from tsvector/queryin

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group