Issue #4909 has been updated by ko1 (Koichi Sasada).

Assignee changed from ko1 (Koichi Sasada) to kosaki (Motohiro KOSAKI)

絨?????????篁祉??鐚?
----------------------------------------
Bug #4909: trap????潟?????????ャ????????????????????с???????鐚?
https://bugs.ruby-lang.org/issues/4909#change-33909

Author: kosaki (Motohiro KOSAKI)
Status: Assigned
Priority: Normal
Assignee: kosaki (Motohiro KOSAKI)
Category: core
Target version: 2.0.0
ruby -v: -


篁ヤ?????????違??????

  if intrap == 1
    raise "trap nested"
  end

??????????c?????障?c???紊?腟?篋??????????障?????с????????????????莎??????????????????с??????с??????????????
篁ヤ????????鴻?????????????????障?????

鐚?鐚???????????違?????????????激?違????????g????????????????????????鴻?帥??????若????若?????若??綣????莎激????????
鐚?鐚?Ruby????????sigprocmask()???後??????????激?違?????????????潟?井??篏???????箴????????????????????????
      罩c???????????????????潟????????吾??????????祉?寂????純???c??????

C荐?茯???с??????????激?違???????潟??????茵?筝??激?違???????????????????鴻??????????????с???????????Ruby??с??
????????????????MRI???????????????鴻??????????????障?????

---------------------------------------------------------------------
n = 0
intrap = 0

parent = $$

trap(:USR1) {
  if intrap == 1
    raise "trap nested"
  end
  intrap = 1
  10000.times {
    n += 1
  }
  intrap = 0
}

fork do
 Process.kill(:USR1, parent) while true
end

sleep 100
----------------------------------------------------



-- 
http://bugs.ruby-lang.org/