reopen_logs: avoid modifying ObjectSpace while iterating
commitc7739a2259798859ddb2827fd6f90366813e5212
authorEric Wong <normalperson@yhbt.net>
Tue, 8 Jun 2010 06:41:36 +0000 (8 06:41 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 8 Jun 2010 06:41:36 +0000 (8 06:41 +0000)
tree1632271090a4d9ad8dff03ba5b73a7bafb17f11a
parent765ff628e11775a9b684759d6c191b4934ff78fb
reopen_logs: avoid modifying ObjectSpace while iterating

Creating File objects while iterating ObjectSpace for File
objects may hit subtle bugs.  It may only be safe in MRI, and
even then it's not behavior that sounds sane to rely on.  So
stop doing it.
lib/unicorn/util.rb