From: Ryan Davis Date: 2012-01-14T05:09:55+09:00 Subject: Re: at_exit handling On Jan 12, 2012, at 14:44 , Marc Heiler wrote: > Then suddenly one day, I required some files, one of which used at_exit, > and I had a weird bug in that the exiting no longer worked as-is, > instead it raised some SystemExit exception. > > This confused me a lot because that should not happen at all ever. It should happen always, regardless of at_exit: begin exit 1 rescue SystemExit => e p e end # => #