From 7f36d1532e29a29305971bd7c19fd803d9603a04 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 24 Dec 2014 13:25:33 +0100 Subject: 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. --- libmpv/client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpv') diff --git a/libmpv/client.h b/libmpv/client.h index 9ed2cabd27..344bfdd9d5 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 -- cgit v1.2.3