]> git.sesse.net Git - vlc/commitdiff
Remove redumdant fcntl() calls
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 27 Jan 2009 15:57:55 +0000 (17:57 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 27 Jan 2009 16:07:08 +0000 (18:07 +0200)
modules/access/file.c
modules/access/mmap.c

index a0fe4e0a4f7988318e75b726b29587198490b210..213125ae55dfbc4a9dc926219539ca6bda562640 100644 (file)
@@ -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)
index 92667dabf87cc2cafcc1adb3f24363a839648b5f..ec7991983829dbd93eb37317cfba25a1c34fa446 100644 (file)
@@ -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