From 5304a31704e5ddc9eeefe905f05b5f6938f9c646 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 25 May 2019 17:58:17 +0200 Subject: Make sure device monitor thread can be cancelled without pthread_cancel --- common/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/thread.c b/common/thread.c index da7eb21..eb535ab 100644 --- a/common/thread.c +++ b/common/thread.c @@ -77,12 +77,12 @@ int thread_alive(THREAD_T thread) int thread_cancel(THREAD_T thread) { #ifdef WIN32 - return 0; + return -1; #else #ifdef HAVE_PTHREAD_CANCEL return pthread_cancel(thread); #else - return 0; + return -1; #endif #endif } -- cgit v1.1-32-gdbae