Don't try to close negative file descriptors, since this can cause
authorMagnus Hagander <magnus@hagander.net>
Tue, 13 May 2008 20:53:54 +0000 (20:53 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 13 May 2008 20:53:54 +0000 (20:53 +0000)
commitf46f8464853860461723a3ddb30299d51f8bf5cb
tree95e7fe11da4d177fd63e049c05a3af829e1b4a82
parent609bc78b0989d6bc92e4119c8eccaa586572bc94
Don't try to close negative file descriptors, since this can cause
crashes on certain platforms. In particular, the MSVC runtime is known
to do this.

Fixes bug #4162, reported and diagnosed by Javier Pimas
src/backend/access/transam/xlog.c