~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/backend/storage/lmgr/proc.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.206 2009/05/05 19:59:00 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.207 2009/06/11 14:49:02 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
277
277
 
278
278
        /*
279
279
         * Now that we have a PGPROC, mark ourselves as an active postmaster
280
 
         * child; this is so that the postmaster can detect it if we exit
281
 
         * without cleaning up.
 
280
         * child; this is so that the postmaster can detect it if we exit without
 
281
         * cleaning up.
282
282
         */
283
283
        if (IsUnderPostmaster)
284
284
                MarkPostmasterChildActive();
1184
1184
         * Check to see if we've been awoken by anyone in the interim.
1185
1185
         *
1186
1186
         * If we have, we can return and resume our transaction -- happy day.
1187
 
         * Before we are awoken the process releasing the lock grants it to us
1188
 
         * so we know that we don't have to wait anymore.
 
1187
         * Before we are awoken the process releasing the lock grants it to us so
 
1188
         * we know that we don't have to wait anymore.
1189
1189
         *
1190
1190
         * We check by looking to see if we've been unlinked from the wait queue.
1191
1191
         * This is quicker than checking our semaphore's state, since no kernel