aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-03 13:31:23 +0200
committerHimbeer <himbeer@disroot.org>2024-07-03 13:31:23 +0200
commit6d6a3dc3512b81c09bd863a061f9f04341fb08c9 (patch)
tree752cece99d22b0dccb480ae66add47b459785cf3 /src
parentbff30d54233ba53560029e43dd4fd3e74cb86fcd (diff)
process: Fix latestThread not remembering the first thread of the PID
The function no longer fails by always returning null.
Diffstat (limited to 'src')
-rw-r--r--src/lib/process.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/process.zig b/src/lib/process.zig
index a21bc04..87fc374 100644
--- a/src/lib/process.zig
+++ b/src/lib/process.zig
@@ -407,7 +407,7 @@ pub fn latestThread(pid: u16) ?*Info {
if (proc_node.data.thread_id > proc.thread_id) {
latest = &proc_node.data;
}
- }
+ } else latest = &proc_node.data;
}
}