From: "Ara.T.Howard" Date: 2005-10-01T00:24:14+09:00 Subject: Re: Apache 2 & global variables question On Sat, 1 Oct 2005, Pascal Meunier wrote: > Or is it that Ruby 1.8.2 isn't compatible with Apache 2? are you using mod_ruby or fastcgi? > > > On 9/30/05 9:49 AM, "Pascal Meunier" wrote: > >> In Ruby under Apache 2 threads, is a global variable global to all instances >> of scripts simultaneously? >> >> I'm asking because this is the only way I've found to (partially) explain >> some disturbing behavior when running our Ruby scripts under Apache. >> Yesterday I made a post regarding some problems I had with the value of a >> global variable. This morning this problem didn't happen anymore, no matter >> what I tried. That is, until I started executing identical copies of the >> scripts from two different locations. Then the same behavior and errors >> re-appeared! Yesterday, someone else was working on his own cvs-checked out >> copy of the scripts at the same time I was. This morning I was alone >> working on the scripts. With two copies running at once, each setting >> different values for the global variable, we were seeing strange things. It >> still doesn't explain everything we saw, but it would start making some >> sense. >> >> Thanks, >> Pascal >> >> >> > > > -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================