Permalink
Browse files

fix the typo, rb_exec_arg_init() needs a boolean.

  • Loading branch information...
1 parent 3c6c755 commit 5475f9ee6c03aa3f737be46573d73e29bc7e5c1e @Watson1978 Watson1978 committed May 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 process.c
View
4 process.c
@@ -1708,7 +1708,7 @@ rb_f_exec(VALUE rcv, SEL sel, int argc, VALUE *argv)
{
struct rb_exec_arg earg;
- rb_exec_arg_init(argc, argv, Qtrue, &earg);
+ rb_exec_arg_init(argc, argv, TRUE, &earg);
if (NIL_P(rb_ary_entry(earg.options, EXEC_OPTION_CLOSE_OTHERS)))
rb_exec_arg_addopt(&earg, ID2SYM(rb_intern("close_others")), Qfalse);
rb_exec_arg_fixup(&earg);
@@ -2639,7 +2639,7 @@ rb_spawn_internal(int argc, VALUE *argv, int default_close_others)
struct rb_exec_arg sarg;
#endif
- prog = rb_exec_arg_init(argc, argv, Qtrue, &earg);
+ prog = rb_exec_arg_init(argc, argv, TRUE, &earg);
if (NIL_P(rb_ary_entry(earg.options, EXEC_OPTION_CLOSE_OTHERS))) {
VALUE v = default_close_others ? Qtrue : Qfalse;
rb_exec_arg_addopt(&earg, ID2SYM(rb_intern("close_others")), v);

0 comments on commit 5475f9e

Please sign in to comment.