Fix Windows-specific race condition in syslogger. This could've been
commit49f67c066a2a1e4ed52066245078be055c5ad817
authorheikki <heikki>
Wed, 18 Mar 2009 08:44:49 +0000 (18 08:44 +0000)
committerheikki <heikki>
Wed, 18 Mar 2009 08:44:49 +0000 (18 08:44 +0000)
treee2d92761167a54553afd50ef1e6dde4850bf1919
parentd1e5cbdf6d4fc9e64de4da66605b4cca91b434e7
Fix Windows-specific race condition in syslogger. This could've been
the cause of the "could not write to log file: Bad file descriptor"
errors reported at
http://archives.postgresql.org//pgsql-general/2008-06/msg00193.php

Backpatch to 8.3, the race condition was introduced by the CSV logging
patch.

Analysis and patch by Gurjeet Singh.
src/backend/postmaster/syslogger.c