[ruby-cvs:69826] nagachika:r62665 (ruby_2_4): merge revision(s) 59975: [Backport #13916]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Mar 6 00:42:20 JST 2018


nagachika	2018-03-06 00:42:20 +0900 (Tue, 06 Mar 2018)

  New Revision: 62665

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

  Log:
    merge revision(s) 59975: [Backport #13916]
    
    process: block/unblock signals around fork
    
    As with forking for execve(2) in `spawn', we must block signals
    to ensure they are handled correctly in a freshly `fork'-ed child.
    
    * process.c (retry_fork_ruby): block/unblock signals around fork
      (rb_fork_ruby): re-enable signals in forked child
    * test/ruby/test_process.rb (test_forked_child_signal): new test
      [ruby-core:82883] [Bug #13916]
    
      Thanks to Russell Davis for the bug report and test case.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/process.c
    branches/ruby_2_4/test/ruby/test_process.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list