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.