[libav-devel] [PATCH] avutil/file_open: Cleanup fcntl handling in avpriv_open()

Luca Barbato lu_zero at gentoo.org
Mon Sep 29 12:51:03 CEST 2014


On 29/09/14 10:20, Rémi Denis-Courmont wrote:
> Besides, you are already screwed if you need to call fcntl() to begin
> with. It means the system lacks O_CLOEXEC and thus file descriptors
> allocation is not thread-safe fork-safe. If fcntl() were to fail too,
> then you merely loose non-threaded fork safety.

Thanks for the in-depth analysis, I'll update coverity tonight with it.

lu


More information about the libav-devel mailing list