summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids_boxes.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-22 14:34:05 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-22 16:58:58 +0000
commit64fc1bb9c87e95ff484ecd11f391b1c0d556d584 (patch)
tree588dd8dd1a8ab862ea7e22c596d25d2bdf835490 /src/sna/sna_trapezoids_boxes.c
parent900499bff962a63e1d9b5f808d1deb65d55754a2 (diff)
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>
Diffstat (limited to 'src/sna/sna_trapezoids_boxes.c')
-rw-r--r--src/sna/sna_trapezoids_boxes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids_boxes.c b/src/sna/sna_trapezoids_boxes.c
index d6f0c371..2a476dc0 100644
--- a/src/sna/sna_trapezoids_boxes.c
+++ b/src/sna/sna_trapezoids_boxes.c
@@ -1186,7 +1186,7 @@ composite_unaligned_boxes_inplace(struct sna *sna,
thread[i] = thread[0];
thread[i].y1 = y;
thread[i].y2 = y += dy;
- sna_threads_run(rectilinear_inplace_thread, &thread[i]);
+ sna_threads_run(i, rectilinear_inplace_thread, &thread[i]);
}
assert(y < clip.extents.y2);