Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not close file on invalid seek mode #2004
Since invalid seek mode generates errors that could be caught, we should not unexpectedly close the file. Previously we return too early before reinserting the resource back to the resource table on error, causing the file to be closed on dropping of the fd.