diff options
author | wm4 <wm4@nowhere> | 2020-08-16 02:54:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-08-16 02:54:44 +0200 |
commit | e27c523a10708b7265c33a4bae631663df4bb297 (patch) | |
tree | 34bdcd1bc48a5311ec24181dec913768180ad851 /libmpv | |
parent | d6bf3880d74459103a39426275837ec0a1d48e54 (diff) | |
download | mpv-e27c523a10708b7265c33a4bae631663df4bb297.tar.bz2 mpv-e27c523a10708b7265c33a4bae631663df4bb297.tar.xz |
command: extend subprocess command stdin, change behavior
Make it possible to feed a string to stdin of a subprocess. Out of
laziness, it can't be an arbitrary byte string. (Would require adding an
option type that takes in a Lua byte string.)
Do not set stdin of a subprocess to fd 0 (i.e. mpv's stdin) anymore,
because it makes things more consistent. Enabling stdin didn't make too
much sense in the first place, so this behavior change seems
justifiable.
win32 support missing.
Fixes: #8003
Diffstat (limited to 'libmpv')
-rw-r--r-- | libmpv/client.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpv/client.h b/libmpv/client.h index 1731f510c4..da4be5819a 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -141,7 +141,8 @@ extern "C" { * - In certain cases, mpv may start sub processes (such as with the ytdl * wrapper script). * - Using UNIX IPC (off by default) will override the SIGPIPE signal handler, - * and set it to SIG_IGN. + * and set it to SIG_IGN. Some invocations of the "subprocess" command will + * also do that. * - 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 |