Skip to content

Add OPENSSL_INIT_ATFORK compatibility stub#3134

Open
geedo0 wants to merge 1 commit intoaws:mainfrom
geedo0:valkey
Open

Add OPENSSL_INIT_ATFORK compatibility stub#3134
geedo0 wants to merge 1 commit intoaws:mainfrom
geedo0:valkey

Conversation

@geedo0
Copy link
Copy Markdown
Contributor

@geedo0 geedo0 commented Mar 30, 2026

Description of changes:

OPENSSL_INIT_ATFORK is an OpenSSL 1.1.x flag that registers
pthread_atfork() handlers for PRNG fork safety. AWS-LC handles fork
detection automatically via kernel-level mechanisms, so this flag is a
safe no-op. Define it as 0 alongside the other stubbed OPENSSL_INIT_*
flags to unblock consumers that reference it (e.g. Valkey).

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

CI

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

OPENSSL_INIT_ATFORK is an OpenSSL 1.1.x flag that registers
pthread_atfork() handlers for PRNG fork safety. AWS-LC handles fork
detection automatically via kernel-level mechanisms, so this flag is a
safe no-op. Define it as 0 alongside the other stubbed OPENSSL_INIT_*
flags to unblock consumers that reference it (e.g. Valkey).
@geedo0 geedo0 requested a review from a team as a code owner March 30, 2026 17:45
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.97%. Comparing base (474a12c) to head (d218104).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3134   +/-   ##
=======================================
  Coverage   77.97%   77.97%           
=======================================
  Files         689      689           
  Lines      122487   122487           
  Branches    17093    17092    -1     
=======================================
+ Hits        95507    95513    +6     
+ Misses      26082    26077    -5     
+ Partials      898      897    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants