-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing close() and use EXIT_FAILURE macro (#284)
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.
- Loading branch information
1 parent
60d3915
commit 885da47
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters