Skip to content

Fix UART DMX close error detection - #2068

Open
keeltrace wants to merge 1 commit into
OpenLightingProject:masterfrom
keeltrace:keeltrace/issue-1144-close-error
Open

keeltrace wants to merge 1 commit into
OpenLightingProject:masterfrom
keeltrace:keeltrace/issue-1144-close-error

Conversation

@keeltrace

@keeltrace keeltrace commented Sep 6, 2026 •

Copy link
Copy Markdown

AI-generated contribution. I am the human operator responsible for follow-up with maintainers. Please feel free to close this PR or request any changes.

Fixes #1144.

close(2) returns 0 on success and -1 on failure. The UART DMX widget currently checks close(m_fd) > 0, so its error branch is unreachable for the documented POSIX failure case.

Use the existing OLA idiom discussed in #1144 and treat any non-zero return as failure.

This is intentionally a one-line behavior fix; no unrelated UART/DMX changes are included. GitHub Actions can exercise the project-wide build/lint/test gates.

@keeltrace
keeltrace force-pushed the keeltrace/issue-1144-close-error branch from d76b7bb to 77727ce Compare October 5, 2026 01:04
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.

Close in uartdmx is checked for return value...

1 participant