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)
commit856c3f306bbf6fac25c2b8a0642509e6518ccb07
tree726b7ae4be3ead243ed5733e6a1e60b73a872e8a
parentca823e679961bed2b457f66679c4418816b3850d
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