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

pgsql: Fix poll() implementation of WaitLatchOrSocket to noticepostmas

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix poll() implementation of WaitLatchOrSocket to noticepostmas
Date: 2012-01-15 20:10:49
Message-ID: E1RmWPh-0001Ei-MI@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Fix poll() implementation of WaitLatchOrSocket to notice postmaster death.

When the remote end of the pipe is closed, select() reports the fd as
readable, but poll() has a separate POLLHUP return code for that.

Spotted by Peter Geoghegan.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b2b4af535eb733ba0c2ea6eeb2b14cac7f1ca4be

Modified Files
--------------
src/backend/port/unix_latch.c |    7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

pgsql-committers by date

Next:From: Andrew DunstanDate: 2012-01-15 21:21:20
Subject: pgsql: Improve efficiency of recent changes to plperl's sv2cstr().
Previous:From: Magnus HaganderDate: 2012-01-15 14:41:05
Subject: pgsql: Allow a user to kill his own queries using pg_cancel_backend()

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