sna: Allow SIGBUS/SEGV to kill the thread
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 22 Feb 2014 14:34:05 +0000 (14:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 22 Feb 2014 16:58:58 +0000 (16:58 +0000)
commit64fc1bb9c87e95ff484ecd11f391b1c0d556d584
tree588dd8dd1a8ab862ea7e22c596d25d2bdf835490
parent900499bff962a63e1d9b5f808d1deb65d55754a2
sna: Allow SIGBUS/SEGV to kill the thread

To handle sigtrapping of the threads, we allow the threads to handle
their async signals and upon hitting the trap, we kill the thread. All
the rest of the threads are reaped by the main xserver thread
afterwards.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna.h
src/sna/sna_accel.c
src/sna/sna_threads.c
src/sna/sna_trapezoids.c
src/sna/sna_trapezoids_boxes.c
src/sna/sna_trapezoids_imprecise.c
src/sna/sna_trapezoids_mono.c
src/sna/sna_trapezoids_precise.c