OSDN Git Service

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)
commitfad2b995236baf47576a1518672ef58fd3c1cbc6
tree28e15b0f5823861a64e2a10a9feb0739f2b17bb9
parentcf9990c66e679dca0d32be83842406d8b394b8b6
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