-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appsec: fix recv/writev calls in the face of interrupting signals #3008
Conversation
5dd79af
to
f93a341
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3008 +/- ##
============================================
- Coverage 72.74% 72.69% -0.05%
Complexity 2750 2750
============================================
Files 138 138
Lines 15060 15049 -11
Branches 1026 1022 -4
============================================
- Hits 10955 10940 -15
- Misses 3546 3556 +10
+ Partials 559 553 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
f93a341
to
2039f1b
Compare
2039f1b
to
cf7254e
Compare
Benchmarks [ appsec ]Benchmark execution time: 2024-12-20 16:33:05 Comparing candidate commit 41d91c4 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. |
static inline dd_result _imsg_recv( | ||
dd_imsg *nonnull imsg, dd_conn *nonnull conn); | ||
static inline ATTR_WARN_UNUSED dd_result _imsg_recv_cred( | ||
// iif this returns success, _imsg_destroy must be called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it's correct, _imsg_destroy
should be called if and only if _imsg_recv
returns success. I did spot a branch where it was not being called, though, so I added a new commit to use a gcc/clang extension to prevent this.
fe08758
to
e453e54
Compare
e453e54
to
41d91c4
Compare
Description
Reviewer checklist