[vlc-devel] commit: Remove redumdant fcntl() calls ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jan 27 17:14:04 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jan 27 17:57:55 2009 +0200| [71aa05adf754d51d46658c0b1c59b4f5f546a516] | committer: Rémi Denis-Courmont
Remove redumdant fcntl() calls
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71aa05adf754d51d46658c0b1c59b4f5f546a516
---
modules/access/file.c | 2 --
modules/access/mmap.c | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index a0fe4e0..213125a 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -346,8 +346,6 @@ static int open_file (access_t *p_access, const char *path)
}
#if defined(HAVE_FCNTL)
- fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
-
/* We'd rather use any available memory for reading ahead
* than for caching what we've already seen/heard */
# if defined(F_RDAHEAD)
diff --git a/modules/access/mmap.c b/modules/access/mmap.c
index 92667da..ec79919 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -102,7 +102,6 @@ static int Open (vlc_object_t *p_this)
msg_Warn (p_access, "cannot open %s: %m", path);
goto error;
}
- fcntl (fd, F_SETFD, fcntl (fd, F_GETFD) | FD_CLOEXEC);
/* mmap() is only safe for regular and block special files.
* For other types, it may be some idiosyncrasic interface (e.g. packet
More information about the vlc-devel
mailing list