update pthread_cancel.patch.

Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
This commit is contained in:
dongzhengkuan 2023-07-06 02:52:43 +00:00 committed by Gitee
parent d5961f92a8
commit 339ad4786c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,9 +3,11 @@ index 0e01cbf..7898312 100644
--- a/cups/thread.c --- a/cups/thread.c
+++ b/cups/thread.c +++ b/cups/thread.c
@@ -154,7 +154,7 @@ _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ @@ -154,7 +154,7 @@ _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */
void void
_cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */ _cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
{ {
- pthread_cancel(thread); - pthread_cancel(thread);
+ pthread_kill(thread, 10); + pthread_kill(thread, 10);
} }