termux-packages/disabled-packages/cups/cups-thread.c.patch

20 lines
396 B
Diff
Raw Normal View History

2018-02-06 22:23:31 +01:00
--- ./cups/thread.c 2017-06-30 21:14:38.000000000 +0530
+++ ../thread.c 2017-09-24 10:12:11.169628258 +0530
@@ -18,6 +18,7 @@
#include "cups-private.h"
#include "thread-private.h"
+#include <signal.h>
#if defined(HAVE_PTHREAD_H)
@@ -150,7 +151,7 @@
void
_cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
{
- pthread_cancel(thread);
+ pthread_kill(thread, SIGTERM);
}