1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavutil
Tobias Rapp 4746653466 avutil/file_open: avoid file handle inheritance on Windows
Avoids inheritance of file handles on Windows systems similar to the
O_CLOEXEC/FD_CLOEXEC flag on Linux.

Fixes file lock issues in Windows applications when a child process
is started with handle inheritance enabled (standard input/output
redirection) while a FFmpeg transcoding is running in the parent
process.

Links relevant to the subject:

https://msdn.microsoft.com/en-us/library/w7sa2b22.aspx

Describes the _wsopen() function and the O_NOINHERIT flag. File handles
opened by _wsopen() are inheritable by default.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx

Describes handle inheritance when creating new processes. Handle
inheritance must be enabled (bInheritHandles = TRUE) e.g. when you want
to pass handles for stdin/stdout via lpStartupInfo.

Signed-off-by: Tobias Rapp <t.rapp@noa-audio.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-02 17:40:49 +01:00
..
2014-04-07 01:31:02 +02:00
2015-10-28 09:38:21 -05:00
2015-08-19 16:15:13 +00:00
2015-08-22 10:07:05 -07:00
2014-08-05 01:54:47 +02:00
2015-10-28 04:23:14 -05:00
2015-10-28 04:23:14 -05:00
2014-07-12 22:33:27 +02:00
2014-07-12 22:33:27 +02:00
2015-11-01 19:35:01 -05:00
2014-04-29 13:24:11 +02:00
2015-09-05 18:07:20 +02:00
2015-09-05 18:07:20 +02:00
2015-10-11 18:03:10 -04:00
2014-11-08 11:31:11 +01:00
2014-10-11 12:15:26 +02:00
2015-10-16 19:53:55 -04:00
2015-10-17 01:16:50 -07:00
2014-08-05 21:05:52 +02:00
2015-05-26 18:31:53 +02:00
2013-06-15 18:54:01 -03:00
2014-05-26 11:40:15 +02:00
2014-05-26 11:40:15 +02:00
2015-10-26 15:05:26 +01:00
2013-11-22 17:16:11 +01:00
2015-10-28 04:23:14 -05:00