You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release file handles back to caller on failure to take ownership (#2715)
Motivation:
When taking ownership of input and output file descriptors in a bootstrap
the ownership of the file handles remains with the caller in the function
taking ownership fails. This is currently where _takingOwnershipOfDescriptors
uses NIOFileHandle to take ownership of descriptors but then experiences a later
failure.
Modifications:
If an exception is throw in _takingOwnershipOfDescriptors release file descriptors
from NIOFileHandle.
Result:
No crash on failure to close file handles before end of scoped usage.
0 commit comments