Skip to content

fix(runtime): register SIGTERM before readiness - #123

Merged
seonghobae merged 1 commit into
feat/official-threat-feed-refreshfrom
fix/eager-sigterm-registration
Aug 26, 2026
Merged

fix(runtime): register SIGTERM before readiness#123
seonghobae merged 1 commit into
feat/official-threat-feed-refreshfrom
fix/eager-sigterm-registration

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Registers the Unix SIGTERM listener before the gateway publishes readiness, closing the startup race observed by the real binary shutdown contract.\n\nValidation: binary E2E passed 10 consecutive runs; strict workspace Clippy and formatting passed. This is stacked on #115 so the independently observed runtime fix can merge without mixing it into the DNSBL parser commit.


Open in Devin Review

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 18e9695d-c514-4d9e-b4a4-f396aeaac3ae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae merged commit 531943e into feat/official-threat-feed-refresh Aug 26, 2026
5 of 7 checks passed
@seonghobae
seonghobae deleted the fix/eager-sigterm-registration branch August 26, 2026 19:38

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread src/main.rs
}
}

#[cfg(all(not(test), not(unix)))]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Non-unix path still installs handler lazily

The fix only touches the unix branch. The not(unix) branch remains an async fn, so tokio::signal::ctrl_c() installs only when the future is first polled inside run_from_env, after readiness. The startup race the PR closes on unix still exists on non-unix platforms.

(Refers to this code)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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