Don't try to close negative file descriptors, since this can cause
authorMagnus Hagander <magnus@hagander.net>
Tue, 13 May 2008 20:54:02 +0000 (20:54 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 13 May 2008 20:54:02 +0000 (20:54 +0000)
commit3613400e47893ace13a3d0d04a76159b35c9909e
tree56fb11601c88b56b9e3cfe2695f3bb60c717db9f
parentbb6d67f89bb717175215844cae71c7586869e284
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