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:40
Message-ID: 20090504083640.684E275331D@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.

Modified Files:
--------------
    pgsql/src/backend/port:
        win32_shmem.c (r1.7 -> r1.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32_shmem.c?r1=1.7&r2=1.8)

pgsql-committers by date

Next:From: Magnus HaganderDate: 2009-05-04 08:36:42
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to
Previous:From: Peter EisentrautDate: 2009-05-04 08:08:47
Subject: pgsql: Replace a couple of references to files that no longer exist in

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