Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(), as these
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jan 2008 02:03:39 +0000 (02:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Jan 2008 02:03:39 +0000 (02:03 +0000)
commitf9036a445e4334047fb7bee08eda0357f24de805
tree58c8cd5506ceb8ab8530603c1fb9463e1f459095
parent1acd046449de06b9a5db87ae2c35bc5c8bdc2a2d
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.
src/interfaces/libpq/fe-secure.c