Don't try to close negative file descriptors, since this can cause

Magnus Hagander <magnus@hagander.net>

Commit: 7cff884c3882114b777d3ce84439a4ce3b280a17
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-05-13T20:53:54Z
Releases: 7.4.20
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

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +6 −3