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

Magnus Hagander <magnus@hagander.net>

Commit: 8e30db83a5b87b2d812d238674d5e5615f700dc1
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-05-13T20:53:56Z
Releases: 8.0.16
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