Skip to content

Commit

Permalink
Small update to doc comment on fd_count()
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Jul 11, 2022
1 parent 74555db commit 13e8f80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,8 @@ impl Process {
}

/// Gets the number of open file descriptors for a process
///
/// Calling this function is more efficient than calling `fd().unwrap().count()`
pub fn fd_count(&self) -> ProcResult<usize> {
let fds = wrap_io_error!(
self.root.join("fd"),
Expand Down

0 comments on commit 13e8f80

Please sign in to comment.