From 71aa05adf754d51d46658c0b1c59b4f5f546a516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 27 Jan 2009 17:57:55 +0200 Subject: [PATCH] Remove redumdant fcntl() calls --- modules/access/file.c | 2 -- modules/access/mmap.c | 1 - 2 files changed, 3 deletions(-) diff --git a/modules/access/file.c b/modules/access/file.c index a0fe4e0a4f..213125ae55 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 92667dabf8..ec79919838 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 -- 2.22.0