os/inputthread: Force unlock when stopping thread.
The inputthread is kept locked all the time while X server's VT is not active.
If the X server is terminated while not active, it will be stuck forever in
InputThreadFini waiting for the thread to join, but it wouldn't because it is
locked.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=103782
Signed-off-by: Michal Srb <msrb@suse.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 71348e99a8
)
This commit is contained in:
parent
5c456b6e2a
commit
9cd243f75d
|
@ -497,6 +497,7 @@ InputThreadFini(void)
|
|||
|
||||
/* Close the pipe to get the input thread to shut down */
|
||||
close(hotplugPipeWrite);
|
||||
input_force_unlock();
|
||||
pthread_join(inputThreadInfo->thread, NULL);
|
||||
|
||||
xorg_list_for_each_entry_safe(dev, next, &inputThreadInfo->devs, node) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user