Ignore SIGPIPE signals when writing to GSS socket.
authorJennifer Richards <jennifer@painless-security.com>
Tue, 17 May 2016 17:30:58 +0000 (13:30 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Tue, 17 May 2016 17:34:44 +0000 (13:34 -0400)
commite6fb58a4921ce606ed6145ad99144dff8fe4b8d2
tree8cfb3dc159b4958dd9679d0a5974b29a98372801
parentbab71b93f21e046e2132cbe22a7aebb92c98f18b
Ignore SIGPIPE signals when writing to GSS socket.

If the remote end of a GSS connection disconnects, attempts to write
to the now-broken pipe result in a SIGPIPE signal. This unceremoniously
exits. Instead, ignore those signals during the write() and let the
error handling code deal gracefully with the broken pipe.
gsscon/gsscon_common.c