]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
On Linux use the real thread id via gettid() in error logging,
authorJoe Orton <jorton@apache.org>
Wed, 8 May 2024 12:46:58 +0000 (12:46 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 8 May 2024 12:46:58 +0000 (12:46 +0000)
commitac774f7340bd1e2bb5ff092e27e75cd0051f7783
treeef5771c7168ee7173ddfe58d5849d57fc89a1f0b
parentaa86530aec72e5de24227dbe2054cd713fb3d3f5
On Linux use the real thread id via gettid() in error logging,
where available, rather than the (meaningless) default
pthread_self()-as-integer interpretation:

* configure.in: Define DEFAULT_LOG_TID on Linux if gettid() is available.

* server/log.c: Define DEFAULT_LOG_TID as NULL by default.
  (do_errorlog_default): Use DEFAULT_LOG_TID as the argument to log_tid().

Github: closes #443

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917578 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/linux-log-tid.txt [new file with mode: 0644]
configure.in
server/log.c