From: Ian Silvester <iansilvester@fastmail.fm>
Date: Thu, 21 Jan 2016 20:53:01 +0000 (+0000)
Subject: Correct the comment regarding MACH thread id modification
X-Git-Tag: v_3_0_24~3
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/developer-manual/@default-cgi@toggle?a=commitdiff_plain;h=cf1ee7766e41b39265baaa49c5f981da86744a92;p=privoxy.git

Correct the comment regarding MACH thread id modification
---

diff --git a/errlog.c b/errlog.c
index c54ec4cb..55040e15 100644
--- a/errlog.c
+++ b/errlog.c
@@ -1,4 +1,4 @@
-const char errlog_rcs[] = "$Id: errlog.c,v 1.122 2014/10/18 11:30:40 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,10 +421,10 @@ 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 = labs(this_thread % 1000);
 #endif /* def __MACH__ */