* process.c (run_exec_options): don't call FIX2INT for nil.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-04-28 02:13:24 +00:00
parent 3d751cde0f
commit 1414a7a8e2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Apr 28 11:11:29 2008 Tanaka Akira <akr@fsij.org>
* process.c (run_exec_options): don't call FIX2INT for nil.
Mon Apr 28 11:11:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* proc.c (method_name): should return symbols instead of strings.

View File

@ -2051,7 +2051,7 @@ run_exec_options(const struct rb_exec_arg *e)
#ifdef HAVE_FORK
obj = rb_ary_entry(options, EXEC_OPTION_CLOSE_OTHERS);
if (obj != Qfalse) {
rb_close_before_exec(3, FIX2INT(obj), e->redirect_fds);
rb_close_before_exec(3, FIXNUM_P(obj) ? FIX2LONG(obj) : 0, e->redirect_fds);
}
#endif