From bb583c338262484ef79ab37f2c654dec6ffcc7db Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 10 Nov 2022 09:28:17 -0500 Subject: [PATCH] MT#55524 fix typo We want to disable thread cancellation here, not enable. Change-Id: Ib0dd80c15af1e38252617d7cdaa1880f6c63485e (cherry picked from commit 5188f24becea6dbdc2d74d085780c3856207fb44) --- daemon/poller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/poller.c b/daemon/poller.c index c717707fa..e17a0b087 100644 --- a/daemon/poller.c +++ b/daemon/poller.c @@ -587,7 +587,7 @@ void poller_timer_loop(void *d) { pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); usleep(sleeptime); - pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); + pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); continue;