]> granicus.if.org Git - postgresql/commit
Force pgwin32_recv into nonblock mode when called from pgstat.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 May 2012 14:57:07 +0000 (10:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 May 2012 14:57:07 +0000 (10:57 -0400)
commitf1ca51549e9e7045a2db95a61744334f1dbb4d64
treeec00c777633865591c7d54cf6f30a0c946b4e354
parentf15c2eae9c2f36830fae40935bd8cdcede4b75a0
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.
src/backend/postmaster/pgstat.c