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
..
2022-04-28 11:51:03 +02:00
2024-08-12 10:41:13 +02:00
2024-07-30 14:19:01 +08:00
2024-06-18 10:47:18 +02:00
2023-02-21 10:30:48 +01:00
2024-07-04 10:58:21 +02:00
2020-07-21 15:55:03 +08:00
2024-07-30 15:35:33 +08:00