1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c: new method Process.exec. [ruby-dev:28107]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2005-12-27 05:10:38 +00:00
parent f1466bc60a
commit baf0ba4588
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 27 14:09:39 2005 Minero Aoki <aamine@loveruby.net>
* process.c: new method Process.exec. [ruby-dev:28107]
Tue Dec 27 08:22:15 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket#post_connection_chech):

View file

@ -2632,7 +2632,7 @@ proc_setgroups(VALUE obj, VALUE ary)
ngroups = RARRAY(ary)->len;
if (ngroups > maxgroups)
rb_raise(rb_eArgError, "too many groups, %d max", maxgroups);
rb_raise(rb_eArgError, "too many groups, %lu max", (unsigned long)maxgroups);
groups = ALLOCA_N(rb_gid_t, ngroups);
@ -3583,6 +3583,7 @@ Init_process(void)
#endif
#endif
rb_define_singleton_method(rb_mProcess, "exec", rb_f_exec, -1);
rb_define_singleton_method(rb_mProcess, "fork", rb_f_fork, 0);
rb_define_singleton_method(rb_mProcess, "spawn", rb_f_spawn, -1);
rb_define_singleton_method(rb_mProcess, "exit!", rb_f_exit_bang, -1);