Skip to content

feature/SupportDelCon#95

Open
ilang-flytrex wants to merge 15 commits intodronecan:masterfrom
Flytrex:feature/SupportDelCon
Open

feature/SupportDelCon#95
ilang-flytrex wants to merge 15 commits intodronecan:masterfrom
Flytrex:feature/SupportDelCon

Conversation

@ilang-flytrex
Copy link

No description provided.

ilang-flytrex and others added 15 commits September 18, 2025 14:05
2. Cherry pick the changes for using local dsdl repo
…llback is called after the node ID is allocated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1. Allow the DNA server to allocate NodeIDs endlessly
2. Fix an annoying exception in ArrayValue::clear function
Replace os.getppid()!=parent_pid parent-death detection with multiprocessing.parent_process().sentinel wait when available.
This prevents the MAVCAN IO subprocess from exiting unexpectedly, which caused nodes to appear/disappear sporadically
Document that reliable parent process death detection depends on multiprocessing.parent_process() (Python 3.8+).
On Windows with Python 3.7, parent_process() is unavailable and the os.getppid() fallback is intentionally disabled, so detection is effectively unavailable.
Add a runtime warning to recommend Python 3.8+ on Windows.
Only import/use multiprocessing.connection.wait when parent_sentinel is available.
Change fallback gate from mp_wait is None to parent_sentinel is None on non-Windows platforms.
Fixes a regression where POSIX Python 3.7 could skip both sentinel and os.getppid() parent-death detection paths.
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.

2 participants