Which leads me to think that for each running instance of apache2, the variable will have to be initialized at least once. Or is that too shortsighted?root@myserver:/usr/local/lib/site_perl/U2D# ps aux | grep apa root 9546 0.0 0.3 148856 9920 ? Ss 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9549 0.0 0.3 173424 9880 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9550 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9551 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9552 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9553 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9618 0.0 0.3 173424 9860 ? S 13:19 0:00 /usr/ +sbin/apache2 -k start root 9723 0.0 0.0 7624 920 pts/0 S+ 13:20 0:00 grep +apa root@myserver:/usr/local/lib/site_perl/U2D# grep Initializing /var/www +/testSharing.log 02-08-2011 13:19:38:736 9549-172922688: Initializing fruits. 02-08-2011 13:19:39:361 9550-172922688: Initializing fruits. 02-08-2011 13:19:39:426 9551-172922688: Initializing fruits. 02-08-2011 13:19:39:457 9552-172922688: Initializing fruits. 02-08-2011 13:19:39:480 9553-172922688: Initializing fruits. 02-08-2011 13:19:39:499 9618-172922688: Initializing fruits.
In reply to Re^2: Threaded MPM Sharing Variables (this time with complete test code)
by Neighbour
in thread Threaded MPM Sharing Variables (this time with complete test code)
by busymeister
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |