current errlog.c,1.124,1.125
Ian Silvester <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31375
Modified Files:
errlog.c
Log Message:
Altered MACH kernel thread id modification to guarantee uniqueness
Index: errlog.c
===================================================================
RCS file: /cvsroot/ijbswa/current/errlog.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** errlog.c 21 Jan 2016 20:53:01 -0000 1.124
--- errlog.c 26 Jan 2016 17:12:14 -0000 1.125
***************
*** 423,431 ****
/*
* Mac OSX (and perhaps other Mach instances) doesn't have a unique
! * value at the lowest order 4 bytes of pthread_self()'s return value, a pthread_t.
! * pthread_t is supposed to be opaque... however it's fairly random.
! * The following will address these two issues to make it mostly presentable.
*/
! this_thread = labs(this_thread % 1000);
#endif /* def __MACH__ */
#elif defined(_WIN32)
--- 423,430 ----
/*
* Mac OSX (and perhaps other Mach instances) doesn't have a unique
! * value at the lowest order 4 bytes of pthread_self()'s return value, a pthread_t,
! * so trim the three lowest-order bytes from the value (16^3).
*/
! this_thread = this_thread / 4096;
#endif /* def __MACH__ */
#elif defined(_WIN32)
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140