diff options
| author | jason <jkercher43@gmail.com> | 2024-08-03 18:08:00 -0400 |
|---|---|---|
| committer | jason <jkercher43@gmail.com> | 2024-08-03 18:08:00 -0400 |
| commit | 2b89829b5259a8e7120514f9d9592a82271dfaee (patch) | |
| tree | 4a5c87fc6219184aa76940898dbee97d57bd12d7 | |
| parent | 38b96a7981ca465ed5e7f3227e182822a19f54dc (diff) | |
minor edits in process_linux.odin
| -rw-r--r-- | core/os/os2/process_linux.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/os/os2/process_linux.odin b/core/os/os2/process_linux.odin index 0efb19042..553be5fda 100644 --- a/core/os/os2/process_linux.odin +++ b/core/os/os2/process_linux.odin @@ -141,8 +141,7 @@ _process_info_by_pid :: proc(pid: int, selection: Process_Info_Fields, allocator if uid, ok = strconv.parse_int(passwd[:n]); ok && uid == int(s.uid) { info.username = strings.clone(username, allocator) or_return break - } - if !ok { + } else if !ok { return info, .Invalid_File } @@ -413,7 +412,7 @@ _process_start :: proc(desc: Process_Desc) -> (process: Process, err: Error) { if errno = linux.execveat(dir_fd, executable_path, &cargs[0], env); errno != .NONE { intrinsics.trap() } - intrinsics.trap() // unreachable + unreachable() } // TODO: We need to come up with a way to detect the execve failure from here. |