summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 07:34:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 07:34:58 +0000
commit9c7f3cba6428878dfb3e4f4b666a69740fa6390e (patch)
tree01d2d91c7478b6a2d7f406fbb7fd6279cb0ffab6
parentc9f62d7f5beb4d1c688c7a9da0961e9c78ccca56 (diff)
merge revision(s) 57492:
test_queue.rb: fix portability * test/thread/test_queue.rb (test_queue_with_trap): fix portability. use SIGINT instead of SIGUSR2 which is supported on not all platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/thread/test_queue.rb8
-rw-r--r--version.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb
index 6122d9b87c..5ca6972ece 100644
--- a/test/thread/test_queue.rb
+++ b/test/thread/test_queue.rb
@@ -549,14 +549,14 @@ class TestQueue < Test::Unit::TestCase
end
def test_queue_with_trap
- assert_in_out_err([], <<-INPUT, %w(USR2 USR2 exit), [])
+ assert_in_out_err([], <<-INPUT, %w(INT INT exit), [])
q = Queue.new
- trap(:USR2){
- q.push 'USR2'
+ trap(:INT){
+ q.push 'INT'
}
Thread.new{
loop{
- Process.kill :USR2, $$
+ Process.kill :INT, $$
}
}
puts q.pop
diff --git a/version.h b/version.h
index c128279c53..d474c4e444 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.4.0"
#define RUBY_RELEASE_DATE "2017-03-12"
-#define RUBY_PATCHLEVEL 51
+#define RUBY_PATCHLEVEL 52
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3