use more iterators; global "has pidfd open" state is now thread-safe
This commit is contained in:
1 parent
0455e4b60f
commit
16bdc6d240
2 files changed
+27
-15
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user