# Code Review: ExitFix

**URL:** <https://www.ruby-forum.com/t/code-review-exitfix/140830>\
**Category:** IronRuby\
**Created:** [June 19, 2008, 1:01am UTC](https://www.ruby-forum.com/t/code-review-exitfix/140830 "2008-06-19T01:01:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_LSSIRONRUBY](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Post date:** [June 19, 2008, 1:01am UTC](https://www.ruby-forum.com/t/code-review-exitfix/140830/1 "2008-06-19T01:01:07Z")

</div>

tfpt review “/shelveset:ExitFix;REDMOND\jflam”

Comment :  
Fix for bug in exit - exit(int) now returns the value of int

This is a simple fix for the behavior of exit! and exit. We were not  
returning non-zero exit codes correctly for calls to exit.

---

<div class="post-metadata">

**Author:** ![John\_LSSIRONRUBY](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Post date:** [June 19, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/code-review-exitfix/140830/2 "2008-06-19T20:25:16Z")

</div>

Looks good.

Tomas
