Skip to content

Commit

Permalink
Correct copy-pasted Process::task_from_tid() doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Nov 27, 2023
1 parent a00c3fc commit ff0aba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procfs/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Task> {
let path = PathBuf::from("task").join(tid.to_string());
Task::from_process_at(&self.root, self.fd.as_fd(), path, self.pid, tid)
Expand Down

0 comments on commit ff0aba4

Please sign in to comment.