mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Fix linux
This commit is contained in:
@@ -327,7 +327,7 @@ _process_info_by_pid :: proc(pid: int, selection: Process_Info_Fields, allocator
|
|||||||
strings.write_int(&path_builder, pid)
|
strings.write_int(&path_builder, pid)
|
||||||
strings.write_string(&path_builder, "/exe")
|
strings.write_string(&path_builder, "/exe")
|
||||||
|
|
||||||
if exe_bytes, exe_err := _read_link(strings.to_string(path_builder), temp_allocator()); exe_err == nil {
|
if exe_bytes, exe_err := _read_link(strings.to_string(path_builder), temp_allocator); exe_err == nil {
|
||||||
info.executable_path = strings.clone(string(exe_bytes), allocator) or_return
|
info.executable_path = strings.clone(string(exe_bytes), allocator) or_return
|
||||||
info.fields += {.Executable_Path}
|
info.fields += {.Executable_Path}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user