• Rémi Denis-Courmont's avatar
    utf8_open: set the close-on-exec descriptor flag · 9f59c674
    Rémi Denis-Courmont authored
    This departs from utf8_open() being a pure open() + Unicode function.
    We should really always set the flag anyway, so lets factor the code.
    There is still a tiny race between open() and the second fcntl() system
    call, but it cannot quite be fixed within the current POSIX standards.
    
    By the way, the correct way to clear the flag would be _after_ fork(),
    but I am not aware of any such case involving utf8_open() in the
    current tree.
    9f59c674
Name
Last commit
Last update
autotools Loading commit data...
bin Loading commit data...
bindings Loading commit data...
doc Loading commit data...
extras Loading commit data...
include Loading commit data...
libs Loading commit data...
m4 Loading commit data...
modules Loading commit data...
po Loading commit data...
projects Loading commit data...
share Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INSTALL.maemo Loading commit data...
INSTALL.win32 Loading commit data...
INSTALL.wince Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
bootstrap Loading commit data...
config.in Loading commit data...
configure.ac Loading commit data...
make-alias Loading commit data...
toolbox Loading commit data...
vlc-config.in.in Loading commit data...