Description:
fixed too many open file error
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r96:efe2fae6056b - - 1 file changed: 2 inserted, 0 deleted

@@ -54,12 +54,13
54 54 rescue
55 55 raise
56 56
57 57 ensure
58 58 # make sure it unlock the directory
59 59 dir.flock(File::LOCK_UN)
60 + dir.close
60 61 end
61 62 end
62 63
63 64 # Check if I am the last one using the dir. If true, call block.
64 65
65 66 def teardown
@@ -91,12 +92,13
91 92 rescue
92 93 raise
93 94
94 95 ensure
95 96 # make sure it unlock the directory
96 97 dir.flock(File::LOCK_UN)
98 + dir.close
97 99 end
98 100 end
99 101
100 102 protected
101 103
102 104 def get_counter_filename
You need to be logged in to leave comments. Login now