use more iterators; global "has pidfd open" state is now thread-safe

This commit is contained in:
jason
2024-07-24 08:43:22 -04:00
parent 0455e4b60f
commit 16bdc6d240
2 changed files with 27 additions and 15 deletions
-1
View File
@@ -399,7 +399,6 @@ _read_entire_pseudo_file :: proc { _read_entire_pseudo_file_string, _read_entire
_read_entire_pseudo_file_string :: proc(name: string, allocator: runtime.Allocator) -> (b: []u8, e: Error) {
TEMP_ALLOCATOR_GUARD()
name_cstr := clone_to_cstring(name, temp_allocator()) or_return
defer delete(name, temp_allocator())
return _read_entire_pseudo_file_cstring(name_cstr, allocator)
}