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