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

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

From
tgl@postgresql.org (Tom Lane)
Date:
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)