Skip to content

🪲 BUG-#141: Fix fork multiprocessing on macOS with OBJC safety flag#165

Merged
FernandoCelmer merged 1 commit intodevelopfrom
feature/141
Apr 7, 2026
Merged

🪲 BUG-#141: Fix fork multiprocessing on macOS with OBJC safety flag#165
FernandoCelmer merged 1 commit intodevelopfrom
feature/141

Conversation

@FernandoCelmer
Copy link
Copy Markdown
Member

Description

  • dotflow/core/workflow.py — Set OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES on macOS before using fork context

Motivation and Context

On macOS, fork() is deprecated in the presence of threads and can cause crashes with CoreFoundation. Python 3.12+ warns about this. Using spawn or forkserver is not possible because Action objects are not picklable.

The OBJC_DISABLE_INITIALIZE_FORK_SAFETY env var is Apple's official workaround to allow safe forking.

Closes #141

Types of changes

  • Bug fix (change that fixes an issue)
  • New feature (change which adds functionality)
  • Documentation

Checklist

  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the CHANGELOG
  • I have updated the documentation accordingly

@FernandoCelmer FernandoCelmer added the bug Something isn't working label Apr 7, 2026
@FernandoCelmer FernandoCelmer merged commit 9b70bc7 into develop Apr 7, 2026
10 checks passed
@FernandoCelmer FernandoCelmer deleted the feature/141 branch April 7, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant