• Keith Packard's avatar
    fonts: Continue when font calls return Suspended more than once · f9a04d19
    Keith Packard authored
    Patch 3ab6cd31 fixed Xinerama
    interactions with font servers by not putting clients to sleep
    multiple times. However, it introduced additional changes dealing with
    libXfont routine returning Suspended more than once for the same
    request. This additional change was to abandon processing of the
    current request and free the closure data by jumping to
    'xinerama_sleep' in each of the functions.
    
    Font library functions shouldn't return Suspended more than once,
    except for ListFontsWithInfo, which produces multiple replies, and
    thus ends up returning Suspended many times during processing.
    
    With the jump to xinerama_sleep occurring after the first reply was
    processed, the closure for the request was freed and future calls into
    the ListFontsWithInfo callback resulted in dereferencing freed
    memory.
    
    This patch removes the added branches, reverting the code to its
    previous behaviour, which permitted multiple Suspended returns and
    simply waited for the client to be signaled again so that the callback
    could continue processing the request.
    Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
    Reviewed-by: 's avatarAdam Jackson <ajax@redhat.com>
    f9a04d19
Name
Last commit
Last update
..
.gitignore Loading commit data...
BuiltInAtoms Loading commit data...
Makefile.am Loading commit data...
Xserver-dtrace.h.in Loading commit data...
Xserver.d Loading commit data...
atom.c Loading commit data...
buildatoms Loading commit data...
colormap.c Loading commit data...
cursor.c Loading commit data...
devices.c Loading commit data...
dispatch.c Loading commit data...
dispatch.h Loading commit data...
dixfonts.c Loading commit data...
dixutils.c Loading commit data...
enterleave.c Loading commit data...
enterleave.h Loading commit data...
eventconvert.c Loading commit data...
events.c Loading commit data...
extension.c Loading commit data...
ffs.c Loading commit data...
gc.c Loading commit data...
getevents.c Loading commit data...
globals.c Loading commit data...
glyphcurs.c Loading commit data...
grabs.c Loading commit data...
initatoms.c Loading commit data...
inpututils.c Loading commit data...
main.c Loading commit data...
pixmap.c Loading commit data...
privates.c Loading commit data...
property.c Loading commit data...
protocol.txt Loading commit data...
ptrveloc.c Loading commit data...
region.c Loading commit data...
registry.c Loading commit data...
resource.c Loading commit data...
selection.c Loading commit data...
stubmain.c Loading commit data...
swaprep.c Loading commit data...
swapreq.c Loading commit data...
tables.c Loading commit data...
touch.c Loading commit data...
window.c Loading commit data...