Commit 53de5bb9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

eventfd: set close-on-exec flag

parent 0b32594e
......@@ -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
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment