Skip to content

Fix macOS compatibility (shall use spawn) - #2

Open
LuxxxLucy wants to merge 1 commit into
unitreerobotics:mainfrom
LuxxxLucy:luxxxlucy-fix-macos-example-br
Open

Fix macOS compatibility (shall use spawn)#2
LuxxxLucy wants to merge 1 commit into
unitreerobotics:mainfrom
LuxxxLucy:luxxxlucy-fix-macos-example-br

Conversation

@LuxxxLucy

Copy link
Copy Markdown

The start-method fallback treated all non-Windows platforms as fork yet macOS shall defaults to spawn.

Resolve the method per platform accordingly (spawn on Windows/macOS, fork on Linux). As in README.md:

Cross-Platform Support: Works seamlessly with both fork (Linux) and spawn (Windows/macOS) start methods.

Fixes #1

The start-method fallback treated all non-Windows platforms as fork. macOS
defaults to spawn, so the spawn monkeypatch was skipped and child logs went to
an orphan queue the listener never reads. Resolve the method per platform
(spawn on Windows/macOS, fork on Linux) instead.

Fixes unitreerobotics#1
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.

Basic Example not working on 3.12.12, macOS

1 participant