Improvement to the previous fix suggested by Thomas Bellman: if the
unlink() or fdopen() fail, close the file descriptor and re-raise the exception.
Showing
Please register or sign in to comment
unlink() or fdopen() fail, close the file descriptor and re-raise the exception.