jjb / ruby-clock

A ruby job scheduler which runs jobs each in their own thread in a persistent process.
MIT License
78 stars 1 forks source link

no mutex in shutdown #42

Closed jjb closed 3 weeks ago

jjb commented 9 months ago
jjb commented 9 months ago
ruby-clock-2.0.1/lib/ruby-clock.rb:28:in `write': deadlock; recursive locking (ThreadError)
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:28:in `puts'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:28:in `puts'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:28:in `shutdown'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:37:in `block (2 levels) in listen_to_signals'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:53:in `write'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:53:in `puts'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:53:in `puts'
    gems/ruby-clock-2.0.1/lib/ruby-clock.rb:53:in `run_jobs'
    gems/ruby-clock-2.0.1/exe/clock:84:in `<top (required)>'