summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-19 22:16:26 +0100
committerwm4 <wm4@nowhere>2020-02-19 22:16:26 +0100
commitd06ebe2251b2ac75ebc6b63b1580ed15adecd3cc (patch)
treec46515809c4f1a96f0aaece1a44ee6d013857158
parente22b771ff841f7afa91128ed0a1d79aa3e2bc429 (diff)
downloadmpv-d06ebe2251b2ac75ebc6b63b1580ed15adecd3cc.tar.bz2
mpv-d06ebe2251b2ac75ebc6b63b1580ed15adecd3cc.tar.xz
client API: document requirement about PID management
Basically, UNIX sucks. (Not as much as the other POS of course.)
-rw-r--r--libmpv/client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index 2d108ca8d3..2700ad70d9 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -144,6 +144,9 @@ extern "C" {
* and set it to SIG_IGN.
* - mpv will reseed the legacy C random number generator by calling srand() at
* some random point once.
+ * - mpv may start sub processes, so overriding SIGCHLD, or waiting on all PIDs
+ * (such as calling wait()) by the parent process or any other library within
+ * the process must be avoided. libmpv itself only waits for its own PIDs.
*
* Encoding of filenames
* ---------------------