Commit 71aa05ad authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove redumdant fcntl() calls

parent 9f59c674
...@@ -346,8 +346,6 @@ static int open_file (access_t *p_access, const char *path) ...@@ -346,8 +346,6 @@ static int open_file (access_t *p_access, const char *path)
} }
#if defined(HAVE_FCNTL) #if defined(HAVE_FCNTL)
fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
/* We'd rather use any available memory for reading ahead /* We'd rather use any available memory for reading ahead
* than for caching what we've already seen/heard */ * than for caching what we've already seen/heard */
# if defined(F_RDAHEAD) # if defined(F_RDAHEAD)
......
...@@ -102,7 +102,6 @@ static int Open (vlc_object_t *p_this) ...@@ -102,7 +102,6 @@ static int Open (vlc_object_t *p_this)
msg_Warn (p_access, "cannot open %s: %m", path); msg_Warn (p_access, "cannot open %s: %m", path);
goto error; goto error;
} }
fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
/* mmap() is only safe for regular and block special files. /* mmap() is only safe for regular and block special files.
* For other types, it may be some idiosyncrasic interface (e.g. packet * For other types, it may be some idiosyncrasic interface (e.g. packet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment