Actions
Feature #7923
closedQueue#push and Queue#pop makes trap safe
Description
Currently, following program don't work because q.push raises an exception.
However, it would be nice if queue is trap safe and Queue#push and Queue#pop can be called from trap handler.
require "thread"
q = Queue.new
trap("USR1") {
q.push(nil)
}
Process.kill :USR1, $$
sleep
Actions
Like0
Like0