Skip to content

Conversation

aescolar
Copy link
Member

@aescolar aescolar commented Sep 30, 2025

Do not close descriptors manually on reboot, instead rely on them having been opened with O_CLOEXEC, or that whichever component has opened it will close it with a NATIVE/NSI_TASK(ON_EXIT) hook.
And revert disabling the test

Related to

Fixes #96809

Note: CI failure is unrelated #97046

@aescolar aescolar marked this pull request as ready for review October 5, 2025 16:34
@zephyrbot zephyrbot added the area: native port Host native arch port (native_sim) label Oct 5, 2025
@aescolar aescolar requested a review from tpambor October 5, 2025 16:35
@zephyrbot zephyrbot added area: Boards/SoCs area: Tests Issues related to a particular existing or missing test labels Oct 5, 2025
@aescolar
Copy link
Member Author

aescolar commented Oct 5, 2025

CC @koalatux

Copy link
Contributor

@tpambor tpambor left a comment

Choose a reason for hiding this comment

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

I think in the commit message it should be O_CLOEXEC instead of O_CLOEXIT.

Instead rely on them having been opened with O_CLOEXEC, or that
whichever component has opened it will close it with a
NATIVE/NSI_TASK(ON_EXIT) hook.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
This reverts commit 8d7c2e1.
The issue should be fixed now.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
@aescolar
Copy link
Member Author

aescolar commented Oct 6, 2025

Commit msg fixed. No changes otherwise.

Copy link

sonarqubecloud bot commented Oct 6, 2025

@cfriedt cfriedt merged commit 972d5e3 into zephyrproject-rtos:main Oct 8, 2025
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Boards/SoCs area: native port Host native arch port (native_sim) area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in NATIVE_SIM_REBOOT component
6 participants