From: Charles Oliver Nutter Date: 2008-09-08T18:37:46+09:00 Subject: Re: FileUtils.chdir thread safety Mr_Tibs wrote: > I guess FileUtils.chdir is not thread safe. Is there any way you can > make it thread safe? No, it calls the posix function to change the dir of the current process, so it can never be made safe across threads. JRuby emulates this behavior on a per-instance basis, but separate JRuby instances in a given JVM can have their own current dirs. A per-thread chdir seems like it would be a good idea, and easy to add to JRuby. I'd support it...you ought to propose it on ruby-core. - Charlie