termux-packages/x11-packages/tigervnc/tigervnc-1.9.0_common_os_Thread.cxx.patch
Leonid Pliushch 0e280f4735
tigervnc: use TCSANOW in vncpasswd
Now password won't be echoed when using tool 'vncpasswd'.
2022-04-18 14:08:06 +05:30

13 lines
453 B
Diff

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
@@ -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