# HG changeset patch # User Jittat Fakcharoenphol # Date 2010-03-15 16:51:33 # Node ID efe2fae6056b7c34b92e3d4fa1b0568be49edbb1 # Parent 8569b91a13b7560ee579390af5d304a6cb9ad5bf fixed too many open file error diff --git a/lib/dir_init.rb b/lib/dir_init.rb --- a/lib/dir_init.rb +++ b/lib/dir_init.rb @@ -57,6 +57,7 @@ ensure # make sure it unlock the directory dir.flock(File::LOCK_UN) + dir.close end end @@ -94,6 +95,7 @@ ensure # make sure it unlock the directory dir.flock(File::LOCK_UN) + dir.close end end