Prevent crashes in xg_select due to concurrency
commit4fbda463dca50f630c31a2602bd34849f4b51e51
authorEli Zaretskii <eliz@gnu.org>
Thu, 15 Dec 2016 16:18:59 +0000 (15 18:18 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 15 Dec 2016 16:18:59 +0000 (15 18:18 +0200)
tree6f0e33fd4c12e1aa26c7ba7eb6e1c464b90c74b5
parent09a66ceb5e906e704be58d5f40c45096307f0b9e
Prevent crashes in xg_select due to concurrency

* src/xgselect.c (xg_select): Don't call Glib functions that use
'context' if we failed to acquire it.  This means some other
thread owns the context, in which case both using the context and
calling block_input/unblock_input will step on that thread's toes
and eventually lead to crashes.  (Bug#25172)
src/xgselect.c