diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-28 02:13:24 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-28 02:13:24 +0000 |
commit | 1414a7a8e2a031697020f8b0a5a3e02c301ac2e3 (patch) | |
tree | 2db2be27dd44abd411c437ab149d0e0e4987e9f3 | |
parent | 3d751cde0fbfceea1c92a8bdaf5ad8401f19e0e6 (diff) | |
download | ruby-1414a7a8e2a031697020f8b0a5a3e02c301ac2e3.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | process.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 |