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