]> granicus.if.org Git - apache/commitdiff
Pass the thread number along to the new thread for use in the conn->id field.
authorBill Stoddard <stoddard@apache.org>
Fri, 2 Feb 2001 23:39:24 +0000 (23:39 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 2 Feb 2001 23:39:24 +0000 (23:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87962 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 225b611fd14c804c199bfda264b30c037617f70a..1e18d0d4509b1739ef4ae1837da2fccfb3410627 100644 (file)
@@ -1291,7 +1291,7 @@ static void child_main()
     child_handles = (thread) alloca(nthreads * sizeof(int));
     for (i = 0; i < nthreads; i++) {
         child_handles[i] = (thread) _beginthreadex(NULL, 0, (LPTHREAD_START_ROUTINE) worker_main,
-                                                   NULL, 0, &tid);
+                                                   (void *) i, 0, &tid);
     }
 
     /* Begin accepting connections */