• R
    fix false ownership of stdio FILEs due to tid reuse · 5345c9b8
    Rich Felker 提交于
    this is analogous commit fffc5cda
    which fixed the corresponding issue for mutexes.
    
    the robust list can't be used here because the locks do not share a
    common layout with mutexes. at some point it may make sense to simply
    incorporate a mutex object into the FILE structure and use it, but
    that would be a much more invasive change, and it doesn't mesh well
    with the current design that uses a simpler code path for internal
    locking and pulls in the recursive-mutex-like code when the flockfile
    API is used explicitly.
    5345c9b8
funlockfile.c 240 字节