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

Add missing close() and use EXIT_FAILURE macro in cat_nonblock.c #284

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Integral-Tech
Copy link
Contributor

In cat_nonblock.c, function call of close() is missing, which could lead to resource leak. Besides, using EXIT_FAILURE macro defined in stdlib.h provides better readability.

In cat_nonblock.c, function call of close() is missing, which could
lead to resource leak. Besides, using EXIT_FAILURE macro defined in
stdlib.h provides better readability.
@jserv jserv merged commit 885da47 into sysprog21:master Nov 12, 2024
1 check passed
@jserv
Copy link
Contributor

jserv commented Nov 12, 2024

Thank @Integral-Tech for contributing!

@Integral-Tech Integral-Tech deleted the fix-cat-nonblock branch November 12, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants