diff options
author | wm4 <wm4@nowhere> | 2014-11-20 21:45:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-20 21:45:12 +0100 |
commit | f93ce21d4572221bfc2863c0237ef919f0883f02 (patch) | |
tree | 4315f6a55d7613761a5c3b8ccc5d270d09347546 /DOCS/client_api_examples | |
parent | 8a1d5e91ade98b8664f873545bb76b3398a6cc08 (diff) | |
download | mpv-f93ce21d4572221bfc2863c0237ef919f0883f02.tar.bz2 mpv-f93ce21d4572221bfc2863c0237ef919f0883f02.tar.xz |
Catch SIGPIPE
Avoids a crash if OpenSSL tries to write to a broken connection with
write().
Obviously OpenSSL really should use send() with MSG_NOSIGNAL, but for
some reason it doesn't. This should probably be considered an OpenSSL
bug, but since in this case we "own" the process, there is no harm in
ignoring the signal.
This is not done with libmpv, because as a library we don't want to mess
with global state. It's also not done if terminal handling is disabled -
this is a bit arbitrary, but I don't care much.
Diffstat (limited to 'DOCS/client_api_examples')
0 files changed, 0 insertions, 0 deletions