I record the thread id by my kernel driver using PsGetCurrentThreadId(), which reports a different number than the apache log "%{tid}P". I also tried a 3rd party monitoring software (Process Explorer v10.11), which returns the same result as mine. I have tried apache 2.2 on Windows Server 2003, Windows XP Pro and Windows XP Home, and they all have the same problem.
From: "DEBIN GAO" <gaodebin@xxxxxxxxxxx> Reply-To: users@xxxxxxxxxxxxxxxx To: users@xxxxxxxxxxxxxxxxSubject: [users@httpd] bug? LogFormat "%{tid}P" gives wrong tid on Windows Server 2003Date: Fri, 02 Jun 2006 16:25:27 -0400It seems that the access log with format "%{tid}P% gives the wrong thread id on my Windows Server 2003. I have searched all the 250 threads created and couldn't find the thread id reported by the log. (It seems that it always reports 820 or 824 on my machine.) "%{pid}P" gives the correct process id though. Could anyone confirm that this is a bug before I submit it? Thanks.--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx