In the pthreaded fileserver, 3 threads (FiveMinuteCheckLWP, HostCheckLWP, and the FSYNC_sync thread) run without the rx_thread_id_key being set to anything useful. Consequently, they might end up using the same host.holds index (id 0) putting the integrity of the hosts table at risk.

The attached patch tracks the number of threads created in the fileserver and assigns a unique ID for two of them, leaving the FSYNC_sync thread alone using id 0.

The patch is not needed (but harmless) for the lwp-threaded fileserver where LWP_Index() works.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke http://cern.ch/~rtb [EMAIL PROTECTED] O__
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland > |
Phone: +41 22 767 8985 Fax: +41 22 767 7155 ( )\( )

Attachment: p_threadid
Description: application/java-vm

Reply via email to