Skip site navigation (1) Skip section navigation (2)

pgsql: Call SetLastError(0) before calling the file mapping functions to

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to
Date: 2009-05-04 08:36:42
Message-ID: 20090504083642.2F01C75331D@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Call SetLastError(0) before calling the file mapping functions
to make sure that the error code is reset, as a precaution in
case the API doesn't properly reset it on success. This could
be necessary, since we check the error value even if the function
doesn't fail for specific success cases.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/port/win32:
        shmem.c (r1.13 -> r1.13.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/shmem.c?r1=1.13&r2=1.13.2.1)

pgsql-committers by date

Next:From: Magnus HaganderDate: 2009-05-04 08:36:44
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to
Previous:From: Magnus HaganderDate: 2009-05-04 08:36:40
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group