libX11: Changes to 'master'

Jamey Sharp jamey at kemper.freedesktop.org
Sat Jun 2 12:15:02 PDT 2007


 src/XlibInt.c |   10 ++++++++++
 1 files changed, 10 insertions(+)

New commits:
commit 95523387d619af5b400748898d722e080b5ce1a6
Author: Jamey Sharp <jamey at minilop.net>
Date:   Sat Jun 2 11:57:39 2007 -0700

    Allow re-entrant Xlib calls from _XIOError.
    
    Some libraries try to clean up X resources from atexit handlers, _fini,
    or C++ destructors. To make these work, the Display lock should be
    downgraded to a user lock (as in XLockDisplay) before calling exit(3).
    This blocks Xlib calls from threads other than the one calling exit(3)
    while still allowing the exit handlers to call Xlib.
    
    This assumes that the thread calling exit will call any atexit handlers.
    If this does not hold, then an alternate solution would involve
    registering an atexit handler to take over the lock, which would only
    assume that the same thread calls all the atexit handlers.
    
    Commit by Josh Triplett and Jamey Sharp.



More information about the xorg-commit mailing list