Skip to content

Make StatsServer dtor retry signalling thread to stop.#237

Merged
zbyrne merged 1 commit intodevelopfrom
zbyrne/statsserver-dtor
Mar 25, 2026
Merged

Make StatsServer dtor retry signalling thread to stop.#237
zbyrne merged 1 commit intodevelopfrom
zbyrne/statsserver-dtor

Conversation

@zbyrne
Copy link
Collaborator

@zbyrne zbyrne commented Mar 25, 2026

Fix suggested by copilot in #233

@zbyrne zbyrne marked this pull request as ready for review March 25, 2026 19:55
Copilot AI review requested due to automatic review settings March 25, 2026 19:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves shutdown robustness of StatsServer by ensuring the background polling thread is reliably signaled to stop, even when the signal write is interrupted.

Changes:

  • Retry the eventfd stop-signal write() in StatsServer::~StatsServer() when interrupted by EINTR.
  • Broaden the thread stop condition to also exit on POLLERR/POLLNVAL events for the eventfd poll descriptor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zbyrne zbyrne force-pushed the zbyrne/statsserver-dtor branch from c01222c to 337c272 Compare March 25, 2026 20:11
@zbyrne zbyrne merged commit 17827d4 into develop Mar 25, 2026
73 of 74 checks passed
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.

3 participants