mirror of https://github.com/mpv-player/mpv
player/scripting: remove outdated comment about posix_spawn
The comment was added ine2ab6b7f35
, but posix_spawn usage was removed in5309497727
to ensure CLOEXEC correctness.
This commit is contained in:
parent
f8700c5a94
commit
fc6aa2cc8a
|
@ -436,9 +436,6 @@ static int load_run(struct mp_script_args *args)
|
||||||
mp_subprocess(args->log, &opts, &res);
|
mp_subprocess(args->log, &opts, &res);
|
||||||
|
|
||||||
// Closing these will (probably) make the client exit, if it really died.
|
// Closing these will (probably) make the client exit, if it really died.
|
||||||
// They _should_ be CLOEXEC, but are not, because
|
|
||||||
// posix_spawn_file_actions_adddup2() may not clear the CLOEXEC flag
|
|
||||||
// properly if by coincidence fd==src_fd.
|
|
||||||
close(fds[0]);
|
close(fds[0]);
|
||||||
if (fds[1] >= 0)
|
if (fds[1] >= 0)
|
||||||
close(fds[1]);
|
close(fds[1]);
|
||||||
|
|
Loading…
Reference in New Issue