pgsql/src/backend/libpq (pqcomm.c) - Mailing list pgsql-committers

From Tom Lane
Subject pgsql/src/backend/libpq (pqcomm.c)
Date
Msg-id 200005260126.VAA85316@hub.org
Whole thread Raw
List pgsql-committers
  Date: Thursday, May 25, 2000 @ 21:26:19
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/libpq
     from hub.org:/home/projects/pgsql/tmp/cvs-serv85311

Modified Files:
    pqcomm.c

-----------------------------  Log Message  -----------------------------

After closing frontend socket, set MyProcPort->sock = -1 to ensure that
subsequent I/O attempts fail cleanly.  I'm speculating about failure
scenarios in which we do pq_close, then something in a proc_exit routine
opens a file (re-using that kernel FD number), then something else
fails and tries to write an elog message to the frontend ... message
ends up in opened file, oops.  No known examples of this but it seems
like a potential hole.

pgsql-committers by date:

Previous
From: PostgreSQL Main
Date:
Subject: [WEBMASTER] 'www/support-bin check-files.pl mk-snapshot mk-mhonarc'
Next
From: Tom Lane
Date:
Subject: pgsql/src/backend/postmaster (postmaster.c)