From: Andreas Monzner Date: Thu, 2 Mar 2006 11:11:54 +0000 (+0000) Subject: do always call thread cleanup handler X-Git-Tag: 2.6.0~3931 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/ee3668c2b442ccbd7f217eeeb63a9a9f6b79df6a?hp=c3c343dab84378de4e68065497e0115a422bf045 do always call thread cleanup handler --- diff --git a/lib/base/thread.cpp b/lib/base/thread.cpp index 08ddc1fb..a3edef3e 100644 --- a/lib/base/thread.cpp +++ b/lib/base/thread.cpp @@ -19,7 +19,7 @@ void *eThread::wrapper(void *ptr) pthread_cleanup_push( thread_completed, (void*)p ); p->thread(); pthread_exit(0); - pthread_cleanup_pop(0); + pthread_cleanup_pop(1); return 0; }