[ruby-cvs:54709] normal:r47561 (trunk): Process.detach: avoid singleton class creation

normal at ruby-lang.org normal at ruby-lang.org
Sat Sep 13 04:42:03 JST 2014


normal	2014-09-13 04:42:01 +0900 (Sat, 13 Sep 2014)

  New Revision: 47561

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47561

  Log:
    Process.detach: avoid singleton class creation
    
    * process.c (Init_process): subclass Thread as Process::Waiter
      (rb_detach_process): use Process::Waiter instead of singleton class
    
    * test/ruby/test_process.rb (test_process_detach): new test
    
    * inits.c (rb_call_inits): call Init_Thread before Init_process to
      ensure Process::Waiter may be a subclass of Thread
    
    Thanks to headius for reporting [Bug #10231]
    Thanks to nobu for review of my initial patch.

  Modified files:
    trunk/ChangeLog
    trunk/inits.c
    trunk/process.c
    trunk/test/ruby/test_process.rb


More information about the ruby-cvs mailing list