Commit 90d0396d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'prevent-high-sierra-fork-crash' into 'master'

Prevent Unicorn crashing in development on macOS

See merge request gitlab-org/gitlab-ce!16649
parents 51ce175a d9927162
worker_processes 2
timeout 60
before_fork do |server, worker|
if /darwin/ =~ RUBY_PLATFORM
require 'fiddle'
# Dynamically load Foundation.framework, ~implicitly~ initialising
# the Objective-C runtime before any forking happens in Unicorn
# From
Fiddle.dlopen '/System/Library/Frameworks/Foundation.framework/Foundation'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment