You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avutil/file_open: Print debug message if setting close on exec fails
Fixes CID1087079 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -85,8 +85,10 @@ int avpriv_open(const char *filename, int flags, ...)
|
|||||||
|
|
||||||
fd = open(filename, flags, mode);
|
fd = open(filename, flags, mode);
|
||||||
#if HAVE_FCNTL
|
#if HAVE_FCNTL
|
||||||
if (fd != -1)
|
if (fd != -1) {
|
||||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
|
||||||
|
av_log(NULL, AV_LOG_DEBUG, "Failed to set close on exec\n");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
|
Reference in New Issue
Block a user