Files
dotnet-runtime/src/libraries/System.IO.FileSystem
Tom DeseynandCarlos Sanchez 25d4999c5e FileStream.Unix: improve DeleteOnClose when FileShare.None. (#55327)
* FileStream.Unix: improve DeleteOnClose when FileShare.None.

Use FileShare.None lock to detect when another Handle that has
DeleteOnClose deleted the file, and then re-open it.

* Rephrase comment

* FileStream_DeleteOnClose: handle a few special cases.

* Try avoiding test timeout on arm

* Limit check to filemodes that open an existing file, or create it when it doesn't exist.

* PR feedback

* Limit functional change to FileMode.OpenOrCreate, and increase test timeout.

* Fix comment.

Co-authored-by: Carlos Sanchez <[email protected]>

Co-authored-by: Carlos Sanchez <[email protected]>
2021-10-05 12:45:21 -07:00
..
2021-09-24 15:02:33 -07:00