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