pgsql: Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(),

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(),
Date: 2008-01-29 02:03:40
Message-ID: 20080129020340.4C1A5754108@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(), as these
are known to write on the socket sometimes and thus we are vulnerable to
being killed by the signal if the server happens to go away unexpectedly.
Noticed while trying (futilely) to reproduce bug #3902.

This bug has been there all along, but since the situation is usually
only of interest to developers, I chose not to back-patch the changes.

Modified Files:
--------------
pgsql/src/interfaces/libpq:
fe-secure.c (r1.101 -> r1.102)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-secure.c?r1=1.101&r2=1.102)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-01-29 02:06:31 pgsql: Fix up closePGconn() so that PQreset() will work on GSSAPI/SSPI
Previous Message User Andrewsn 2008-01-28 23:18:36 ip4r - ip4r: remove erroneous remnant of alternative approach