From ff0aba4b7111e2087bdf88f65a8f6a3f7825fe5d Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Mon, 27 Nov 2023 14:59:59 +0900 Subject: [PATCH] Correct copy-pasted Process::task_from_tid() doc --- procfs/src/process/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procfs/src/process/mod.rs b/procfs/src/process/mod.rs index 613182c..111aed2 100644 --- a/procfs/src/process/mod.rs +++ b/procfs/src/process/mod.rs @@ -607,7 +607,7 @@ impl Process { self.task_from_tid(self.pid) } - /// Return a task for the main thread of this process + /// Return a task for the thread based on a specified TID pub fn task_from_tid(&self, tid: i32) -> ProcResult { let path = PathBuf::from("task").join(tid.to_string()); Task::from_process_at(&self.root, self.fd.as_fd(), path, self.pid, tid)