8000 ceph plugin: Initialize file descriptor to -1. by octo · Pull Request #3459 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ceph plugin: Initialize file descriptor to -1. #3459

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

Merged
merged 1 commit into from
May 11, 2020

Conversation

octo
Copy link
Member
@octo octo commented May 11, 2020

(struct cconn).asok was implicitly initialized to zero. If connecting to a ceph daemon failed, the field would be left unmodified and cconn_close() would eventually close file descriptor 0.

ChangeLog: ceph plugin: An incorrect close on file descriptor 0 has been fixed.
See also: #3455

(struct cconn).asok was implicitly initialized to zero. If connecting to
a ceph daemon failed, the field would be left unmodified and
cconn_close() would eventually close file descriptor 0.
@octo octo added the Bug A genuine bug label May 11, 2020
@octo octo requested a review from mrunge May 11, 2020 14:22
Copy link
Member
@mrunge mrunge left a comment

Choose a reason for hiding this comment

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

Thank you @octo. This works as expected and is imho cleaner than my proposal.

@mrunge mrunge merged commit db509da into collectd:collectd-5.10 May 11, 2020
@octo octo added Fix A pull request fixing a bug and removed Bug A genuine bug labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix A pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0