From: sera@... Date: 2005-02-05T07:50:16+09:00 Subject: Re: Too many open files - getcwd (Errno::EMFILE) Yeah, attempts to narrow it down were pretty difficult ... Every time I ran my 500 test cases, I got bit by that bug a couple of times, but it hit different test cases on different runs. So I just locally cached the value, calling Dir.getwd 1 time instead of a couple thousand, and it seems to be working fine now.