eventfd: set close-on-exec flag
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 13:18:10 +0000 (15:18 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 13:18:10 +0000 (15:18 +0200)
src/misc/objects.c

index e8f83d8..1dfbffb 100644 (file)
@@ -357,7 +357,7 @@ int vlc_object_waitpipe( vlc_object_t *obj )
         assert (internals->pipes[1] == -1);
 
 #if defined (HAVE_SYS_EVENTFD_H)
-        internals->pipes[0] = internals->pipes[1] = eventfd (0, 0);
+        internals->pipes[0] = internals->pipes[1] = eventfd (0, EFD_CLOEXEC);
         if (internals->pipes[0] == -1)
 #endif
         {