summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/linux/lnx_init.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-09-21 07:16:12 +0100
committerAdam Jackson <ajax@redhat.com>2015-10-26 12:20:46 -0400
commit0ca79007c940b09bd81823fc2e2276f08057247c (patch)
treed429f970f1904f381b99bc6b5a907abdf4660060 /hw/xfree86/os-support/linux/lnx_init.c
parent82000d6d0376bdd5c6bb4e0daefcb85879f7c5c7 (diff)
fonts: Continue when font calls return Suspended more than once
Patch 3ab6cd31cbdf8095b2948034fce5fb645422d8da 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: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit f9a04d19aef77bf787b8d322305a6971d24a6ba1)
Diffstat (limited to 'hw/xfree86/os-support/linux/lnx_init.c')
0 files changed, 0 insertions, 0 deletions