From: Robert Klemme Date: 2008-09-11T05:53:38+09:00 Subject: Re: FileUtils.chdir thread safety On 10.09.2008 21:10, Charles Oliver Nutter wrote: > Robert Klemme wrote: >> 2008/9/10 Michal Suchanek : >>> Also this could possibly be an option - load thread/chdir and now you >>> can control if your thread cwds are bound together or not. >> This is a good option. It also carries potential for subtle bugs if >> it /redefines/ behavior of Dir.chdir. Maybe better have Thread.chdir >> instead which delegates to Thread.current.chdir to keep both separate. > > I figured Thread.chdir would only operate on the current thread either > way, like Thread.stop. And I'd rather not make it possible to change the > dir for another thread...that seems like a dangerous idea. Yep, good point! robert