discourse/lib/demon
Alan Guo Xiang Tan 10ff0ee0cc
FIX: Ensure we dispose of MiniRacer::Context before forking daemons (#28361)
This commit updates `Demon::Base#start` to call `Discourse.before_fork`
before forking. According to the docs in `mini_racer`, we need to
"Dispose manually of all MiniRacer::Context objects prior to forking".

This commit is motivated by a segmentation fault which we are seeing in
production when killing a daemon process. Backtrace of the core dump
includes traces of `mini_racer` so we think this is the cause. Note that
we are not 100% sure if this will fix the issue.
2024-08-14 12:45:34 +08:00
..
base.rb FIX: Ensure we dispose of MiniRacer::Context before forking daemons (#28361) 2024-08-14 12:45:34 +08:00
email_sync.rb DEV: Log Unicorn worker timeout backtraces to `Rails.logger` (#27257) 2024-06-03 12:51:12 +08:00
rails_autospec.rb DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
sidekiq.rb DEV: Log error encountered when reopening sidekiq logs (#27411) 2024-06-11 12:29:48 +08:00