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
Updated by ko1 (Koichi Sasada) about 11 years ago
- Status changed from Assigned to Closed
Fixed by C-ext thread.
Actions
Like0
Like0