summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-24 13:25:33 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:14 +0900
commitdab7602a892e5c570c5f63478cc5d929a7e2a356 (patch)
treefd6ae88fb50cfb01e2ab574cf1411ad51b3fa730 /libmpv
parent37210f0cbc1c00a06a4e84dfabb55e1046e6182c (diff)
downloadmpv-dab7602a892e5c570c5f63478cc5d929a7e2a356.tar.bz2
mpv-dab7602a892e5c570c5f63478cc5d929a7e2a356.tar.xz
client API: document requirement to block SIGPIPE
I noticed that the IPC code does not use MSG_NOSIGNAL or SO_NOSIGPIPE. The former is "only" POSIX 2008 and also requires switching to sendto(), while the latter is even less portable. Not going to bother with this obsolete 80ies crap, just block SIGPIPE, and instruct client API users to do the same.
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 11b27b26df..85b1900068 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -117,6 +117,8 @@ extern "C" {
* (used through libass), ALSA, FFmpeg, and possibly more.
* - The FPU precision must be set at least to double precision.
* - On Windows, mpv will call timeBeginPeriod(1).
+ * - SIGPIPE should be blocked. Some parts rely on this signal not crashing the
+ * process (such as ffmpeg OpenSSL support, or the mpv IPC code).
* - On memory exhaustion, mpv will kill the process.
*
* Embedding the video window