20 lines
396 B
Diff
20 lines
396 B
Diff
--- ./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);
|
|
}
|
|
|
|
|