diff options
author | Nikias Bassen | 2019-05-25 17:58:17 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-05-25 17:58:17 +0200 |
commit | 5304a31704e5ddc9eeefe905f05b5f6938f9c646 (patch) | |
tree | 3a521189255e20d608007c0a09ebb78b142c1d93 /common | |
parent | 7b2b09fe7f4bd20cba4dae3e9104970c94618da5 (diff) | |
download | libusbmuxd-5304a31704e5ddc9eeefe905f05b5f6938f9c646.tar.gz libusbmuxd-5304a31704e5ddc9eeefe905f05b5f6938f9c646.tar.bz2 |
Make sure device monitor thread can be cancelled without pthread_cancel
Diffstat (limited to 'common')
-rw-r--r-- | common/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |