Skip to content

Conversation

@mediocretes
Copy link
Contributor

This is required in order to get forking to work properly in the docraptor tests. as things labeled 'unsafe' go, it is fairly safe. We have seen this before and this was the solution then, too. Read more: https://stackoverflow.com/questions/52671926/rails-may-have-been-in-progress-in-another-thread-when-fork-was-called

…to get forking to work properly in hte docraptor tests. as things labeled 'unsafe' go, it is fairly safe. We have seen this before and this was the solution then, too. Read more: https://stackoverflow.com/questions/52671926/rails-may-have-been-in-progress-in-another-thread-when-fork-was-called
Copy link

@fzhunt fzhunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the line that the internet says we need, looks good to me.

@mediocretes mediocretes merged commit 4160720 into master Nov 29, 2023
@tonydewan
Copy link

I'm not currently running the common files, trying to run lean. I'm running with this for a bit:

set_objc_fork_safety() {
  if [ "$(pwd | xargs basename)" = "doc_raptor" ]; then
    export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
  else
    unset OBJC_DISABLE_INITIALIZE_FORK_SAFETY
  fi
}

autoload -U add-zsh-hook
add-zsh-hook chpwd set_objc_fork_safety

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.

4 participants