termux-packages/x11-packages/tigervnc/tigervnc-1.9.0_common_os_Th...

13 lines
453 B
Diff
Raw Normal View History

diff -uNr tigervnc-1.9.0/common/os/Thread.cxx tigervnc-1.9.0.mod/common/os/Thread.cxx
--- tigervnc-1.9.0/common/os/Thread.cxx 2018-07-16 17:08:55.000000000 +0300
+++ tigervnc-1.9.0.mod/common/os/Thread.cxx 2018-09-12 11:14:21.776323226 +0300
2018-09-10 00:42:26 +02:00
@@ -48,7 +48,7 @@
delete (HANDLE*)threadId;
#else
if (isRunning())
- pthread_cancel(*(pthread_t*)threadId);
+ pthread_kill(*(pthread_t*)threadId, SIGABRT);
delete (pthread_t*)threadId;
#endif