* 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:
parent
3d751cde0f
commit
1414a7a8e2
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user