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
Copy file name to clipboardexpand all lines: Sources/Foundation/FileHandle.swift
+15-13
Original file line number
Diff line number
Diff line change
@@ -477,7 +477,7 @@ open class FileHandle : NSObject {
477
477
// - deinit tries to .sync { … } to serialize the work on the handle queue, _which we're already on_
478
478
// - deadlock! DispatchQueue's deadlock detection triggers and crashes us.
479
479
// since all operations on the handle queue retain the handle during use, if the handle is being deinited, then there are no more operations on the queue, so this is serial with respect to them anyway. Just close the handle immediately.
480
-
try?_immediatelyClose()
480
+
try?_immediatelyClose(closeFd: _closeOnDealloc)
481
481
}
482
482
483
483
// MARK: -
@@ -620,7 +620,7 @@ open class FileHandle : NSObject {
0 commit comments