Skip to content

Commit

Permalink
Merge pull request #294 from ryoqun/task-from-tid-doc
Browse files Browse the repository at this point in the history
Correct copy-pasted Process::task_from_tid() doc
  • Loading branch information
eminence authored Nov 27, 2023
2 parents a00c3fc + ff0aba4 commit b153b78
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 b153b78

Please sign in to comment.