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

Magnus Hagander <magnus@hagander.net>

Commit: 5b4150a682e5093d9b5a609f5a4f51ed6d799cf7
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-05-13T20:53:58Z
Releases: 8.1.12
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