Skip to content

Prevent Unicorn crashing in development on macOS

Jacob Vosmaer requested to merge prevent-high-sierra-fork-crash into master

What does this MR do?

Adds a macOS dlopen call during Unicorn startup to prevent crashes on High Sierra, for development only.

Based on https://bugs.ruby-lang.org/issues/14009.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Because Unicorn can crash on macOS High Sierra with an error related to forking. The fix here is more 'surgical' than the previous workaround of setting BJC_DISABLE_INITIALIZE_FORK_SAFETY=YES in the environment of Unicorn. Plus, it's automatic.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Jacob Vosmaer

Merge request reports