X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=55040e151b652e1d8b3d069cf4500ec036bbdc28;hp=f493ac6ec9af26ee19f88dfa3b6e364456f00c6e;hb=4690cdc25fe58ef80bc299f8daea7245476df09f;hpb=abcc2b0c1d0b912c66fc4241f943b602e30ce9b0 diff --git a/errlog.c b/errlog.c index f493ac6e..55040e15 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.121 2014/06/03 10:24:00 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.123 2016/01/21 13:02:10 diem Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -421,12 +421,12 @@ static long get_thread_id(void) this_thread = (long)pthread_self(); #ifdef __MACH__ /* - * Mac OSX (and perhaps other Mach instances) doesn't have a debuggable - * value at the first 4 bytes of pthread_self()'s return value, a pthread_t. - * pthread_t is supposed to be opaque... but it's fairly random, though, so - * we make it mostly presentable. + * 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 = abs(this_thread % 1000); + this_thread = labs(this_thread % 1000); #endif /* def __MACH__ */ #elif defined(_WIN32) this_thread = GetCurrentThreadId();