diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-13 05:24:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-13 05:24:40 +0000 |
commit | 32ef17fe7b69417d0c1d54b94105e3603fafe832 (patch) | |
tree | 5b4d5baff35a100a79f901a45682c1d20de01b6f /gc.c | |
parent | 847786069403bce010d42e0da6f6b80223dd02b9 (diff) | |
download | ruby-32ef17fe7b69417d0c1d54b94105e3603fafe832.tar.gz |
* gc.c (rb_memerror): exit with EXIT_FAILURE instead of magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -273,7 +273,7 @@ rb_memerror(void) if (!nomem_error || (rb_thread_raised_p(th, RAISED_NOMEMORY) && rb_safe_level() < 4)) { fprintf(stderr, "[FATAL] failed to allocate memory\n"); - exit(1); + exit(EXIT_FAILURE); } rb_thread_raised_set(th, RAISED_NOMEMORY); rb_exc_raise(nomem_error); |