Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

send EXIT before exiting in freeipmi and debugfs plugins #15140

Merged
merged 3 commits into from Jun 5, 2023

Conversation

ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Jun 5, 2023

Summary

The same change we did for charts.d.plugin.


Sometimes external processes become a zombie. This is likely because Netdata's main process doesn't handle SIGCHLD (this signal is simply ignored) and we rely on the read parser to fail. But sometimes it doesn't work and the parser gets stuck in parser_next->fgets().

Some external plugins periodically exit (e.g. freeipmi every 4 hours, debugfs every 24 hours), and every time they exit there is a chance to get a zombie process 馃

This PR addresses only this case, the (alleged) root cause (ignoring SIGCHLD) will be fixed in #15113.

Test Plan

ci.

Additional Information
For users: How does this change affect me?

@ilyam8 ilyam8 requested a review from thiagoftsm as a code owner June 5, 2023 14:54
@ilyam8 ilyam8 requested a review from MrZammler June 5, 2023 14:54
MrZammler
MrZammler previously approved these changes Jun 5, 2023
thiagoftsm
thiagoftsm previously approved these changes Jun 5, 2023
@ilyam8 ilyam8 dismissed stale reviews from thiagoftsm and MrZammler via 212ca2a June 5, 2023 16:03
@ktsaou ktsaou merged commit 53b9133 into netdata:master Jun 5, 2023
121 of 123 checks passed
@ilyam8 ilyam8 deleted the fix_send_exit_before_exiting branch June 7, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants