Skip to content

Restore early initialization on macOS#114

Merged
dvarrazzo merged 4 commits intomasterfrom
fix-113
Aug 11, 2022
Merged

Restore early initialization on macOS#114
dvarrazzo merged 4 commits intomasterfrom
fix-113

Conversation

@dvarrazzo
Copy link
Copy Markdown
Owner

Perform early initialization on macOS only in order to avoid crashes on forking from a thread (#113).

Early initialization causes side effects on Linux (such as #45, #46) so we only run it on macOS.

Close #113

Avoid problems caused by initializing the module after a fork().

Close #113.
Other platforms are not affected by the issue. Conversely, many users
have voiced unhappiness at the module having side effect on import.

Looking at the tests failing in the previous commit, only linux is
shows side effects on import.
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.

setproctitle crashes after a fork on MacOS

1 participant