| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/net/yate/files/ |
Upload File : |
--- engine/Thread.cpp.orig 2022-01-03 18:04:16 UTC
+++ engine/Thread.cpp
@@ -525,7 +525,7 @@ int ThreadPrivate::setAffinity(ThreadPrivate* t, const
#else
pid_t tid = -1;
if (!t)
- tid = (pid_t)syscall(SYS_gettid);
+ tid = (pid_t)syscall(SYS_getpid);
else {
// there is a race between getting the TID and this call
// try to hold off for a while, maybe it will get set
@@ -593,7 +593,7 @@ int ThreadPrivate::getAffinity(ThreadPrivate* t, DataB
#else
pid_t tid = -1;
if (!t)
- tid = (pid_t)syscall(SYS_gettid);
+ tid = (pid_t)syscall(SYS_getpid);
else {
// there is a race between getting the TID and this call
// try to hold off for a while, maybe it will get set