You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
396 B

--- ./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);
}