Hi all, Is there a way to have your code notified when a Ruby process is terminated? I'm looking for a way to serialize a bunch of in-memory data to disk automatically when a Rails app is shut down. I might be better off storing it in SQLite but would like to know if the in-memory option is possible first. Thanks, James http://github.com/jcoglan
on 2009-01-09 11:28
on 2009-01-09 11:37
Your are probably looking for Kernel::at_exit blambeau
on 2009-01-09 11:50
2009/1/9 LAMBEAU Bernard <email@example.com> > Your are probably looking for Kernel::at_exit Fantastic, just what I needed. Thanks!