pgsql: Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(), - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(),
Date
Msg-id 20080129020340.4C1A5754108@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: andrewsn@pgfoundry.org (User Andrewsn)
Date:
Subject: ip4r - ip4r: remove erroneous remnant of alternative approach
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix up closePGconn() so that PQreset() will work on GSSAPI/SSPI