Exit handling with status code #73

merged 2 commits into from Feb 6, 2013
Commits on Feb 5, 2013
  1. @joonty

    Move Object#exit method to at_exit callback

    joonty committed Feb 5, 2013
    This ensures that it will be called when ruby exits, e.g. when
    SystemExit is raised instead of exit() being called. Also, it doesn't
    stop other exit callbacks that the user may have set.
  2. @joonty

    Stop Glib from printing SystemExit stack trace

    joonty committed Feb 5, 2013
    The Glib2 library registers an exception callback, and prints the stack
    trace for ALL exceptions. Override this method so that SystemExits are
    re-raised and not debugged.