Author: rjung
Date: Tue Feb 23 01:28:51 2010
New Revision: 915124
URL: http://svn.apache.org/viewvc?rev=915124&view=rev
Log:
Add a warning comment about thread insafety
of non-atomic address change procedure.
Modified:
tomcat/jk/trunk/native/common/jk_status.c
Modified: tomcat/jk/trunk/native/common/jk_status.c
URL:
http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_status.c?rev=915124&r1=915123&r2=915124&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_status.c (original)
+++ tomcat/jk/trunk/native/common/jk_status.c Tue Feb 23 01:28:51 2010
@@ -3361,6 +3361,7 @@
rc = JK_FALSE;
}
else {
+ /* This is not atomic and not thread safe */
aw->port = port;
strncpy(aw->host, host, JK_SHM_STR_SIZ);
memcpy(&(aw->worker_inet_addr), &inet_addr, sizeof(inet_addr));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]