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

Turn off close() warnings on bad filehandles when exceptions are on. #21

Open
schwern opened this issue Oct 20, 2015 · 0 comments
Open

Comments

@schwern
Copy link
Contributor

schwern commented Oct 20, 2015

close will warn in some cases, like if it's given a bad filehandle. This is redundant with exceptions on. Turn it off if exceptions are on.

The code is in report_evil_fh in util.c. This code is used in multiple places, including do_close. report_evil_fh could be made to throw, but errno is set afterwards in do_close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant