-
Notifications
You must be signed in to change notification settings - Fork 467
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
add test and fix for configuration reload #1808
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1808 +/- ##
==========================================
- Coverage 52.94% 52.57% -0.38%
==========================================
Files 148 148
Lines 19855 19878 +23
==========================================
- Hits 10513 10451 -62
- Misses 8171 8261 +90
+ Partials 1171 1166 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e858c7c
to
f67967c
Compare
example: run crowdsec, disable agent in the config file, reload config. Now there is no agent but the signal loop believes there is, so triggering a reload configuration again will make the process hang forever. This commit updates the configuration in the signal loop with the one returned by the signal handler.
d7b2fe0
to
75f6c19
Compare
5ad0bf8
to
b52ea6b
Compare
5ef33da
to
180d50b
Compare
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.
lgtm
No description provided.