Skip to content

Detect prior-process exit and abort interrupted startup - #1185

Merged
matteius merged 4 commits into
mainfrom
ai-findings-autofix/src-core-main.c
Nov 26, 2026
Merged

matteius merged 4 commits into
mainfrom
ai-findings-autofix/src-core-main.c

Conversation

@matteius

@matteius matteius commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Findings addressed

  • Detect exited or zombie previous processes while waiting for graceful shutdown, using pidfd polling when available. Treat pidfd read/hangup as exit and fall back to process-state checks on poll errors.
  • Stop detection stream startup promptly when shutdown or restart is requested.

Verification

Built lightnvr and test_config; all 81 config tests passed.

matteius and others added 3 commits November 26, 2026 03:46
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@matteius matteius changed the title Potential fixes for 2 code quality findings Detect prior-process exit and abort interrupted startup Nov 26, 2026
@matteius
matteius marked this pull request as ready for review November 26, 2026 08:50
@matteius
matteius merged commit 662b9d1 into main Nov 26, 2026
4 checks passed
@matteius
matteius deleted the ai-findings-autofix/src-core-main.c branch November 26, 2026 08:51
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.

1 participant