[ruby-cvs:70429] shyouhei:r63339 (trunk): passing rb_thread_sleep to rb_protect is IMHO dangerous

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Sat May 5 00:18:42 JST 2018


shyouhei	2018-05-05 00:18:42 +0900 (Sat, 05 May 2018)

  New Revision: 63339

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

  Log:
    passing rb_thread_sleep to rb_protect is IMHO dangerous
    
    rb_thread_sleep's argument is int, while rb_protect expects the function
    to take VALUE. Depending on ABI this could be a problem.
    
    We should wrap rb_thread_sleep here.

  Modified files:
    trunk/process.c


More information about the ruby-cvs mailing list