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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check return value of write function - avoiding leak of file descriptors #3284

Merged
merged 1 commit into from Oct 29, 2019

Conversation

smoe
Copy link
Contributor

@smoe smoe commented Sep 10, 2019

This is yet another patch that is living for a lllooonnnggg time with Debian, so there should not be too many side issues. In the contrary, it could be contributing to a fix of the rarely observed leak of file descriptors, compare #1175.

The motivation for this patch originated from clang who complained that we don't check if the write has failed.

Anchor: #3260

This patch closes the file descriptor and returns with a failure,
when there is a failure.
@lfield lfield merged commit 8fc4612 into BOINC:master Oct 29, 2019
@AenBleidd AenBleidd added this to In progress in BOINC Client/Manager via automation Oct 29, 2019
@AenBleidd AenBleidd added this to the Client/Manager 8.0 milestone Oct 29, 2019
@AenBleidd AenBleidd moved this from In progress to Done in BOINC Client/Manager Oct 29, 2019
@AenBleidd AenBleidd removed this from Done in BOINC Client/Manager Jan 28, 2020
@AenBleidd AenBleidd added this to Development in Client Release 7.16 via automation Jan 28, 2020
@AenBleidd AenBleidd moved this from Development to Done in Client Release 7.16 Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants