Skip to content

Conversation

@jjb
Copy link
Owner

@jjb jjb commented Jan 15, 2024

  • shutdown outside of the handler
  • wip

jjb added 3 commits January 14, 2024 18:31
because, i think but haven't totally verified, rufus will create
mutexts sometimes which is not allowed in a signal handler
@jjb jjb changed the title no mutex in shutdown without loop no mutex in shutdown Jan 15, 2024
@jjb
Copy link
Owner Author

jjb commented Jan 15, 2024

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)>'

@jjb jjb closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant