[vlc-commits] mtp: redundant close-on-exec code

Rémi Denis-Courmont git at videolan.org
Wed Apr 17 19:07:38 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 17 20:02:41 2013 +0300| [10927263be1911efc2e7d78ab244f99624f303f3] | committer: Rémi Denis-Courmont

mtp: redundant close-on-exec code

(vlc_open() takes care of that)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10927263be1911efc2e7d78ab244f99624f303f3
---

 modules/access/mtp.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/access/mtp.c b/modules/access/mtp.c
index c7ce997..1c40f70 100644
--- a/modules/access/mtp.c
+++ b/modules/access/mtp.c
@@ -294,8 +294,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 )



More information about the vlc-commits mailing list