From bce5b73e1c968949b48951df8234bc738522f9d6 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 25 Jul 2023 10:58:27 +0800 Subject: [PATCH] call pthread_testcancel() in task_do_update --- src/newgal/shadow/shadow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgal/shadow/shadow.c b/src/newgal/shadow/shadow.c index 819ecfb9..4909463f 100644 --- a/src/newgal/shadow/shadow.c +++ b/src/newgal/shadow/shadow.c @@ -776,6 +776,7 @@ static void *task_do_update(void *data) _ERR_PRINTF("Failed pthread_mutex_unlock(): %m\n"); #endif + pthread_testcancel(); } while (1); return NULL;