mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Debug too many open files
This commit is contained in:
@@ -34,7 +34,7 @@ public func printOpenFiles() {
|
||||
buf.withUnsafeMutableBytes { buffer -> Void in
|
||||
let _ = fcntl(fd, F_GETPATH, buffer.baseAddress!)
|
||||
let string = String(cString: buffer.baseAddress!.assumingMemoryBound(to: CChar.self))
|
||||
print(string)
|
||||
postboxLog("f: \(string)")
|
||||
}
|
||||
|
||||
fd += 1
|
||||
|
||||
Reference in New Issue
Block a user