From 13e8f80ab331ddc4ecbdc25263fb7039c43b1d04 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Mon, 11 Jul 2022 10:47:16 -0400 Subject: [PATCH] Small update to doc comment on fd_count() --- src/process/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/process/mod.rs b/src/process/mod.rs index 2862dfe1..668809a9 100644 --- a/src/process/mod.rs +++ b/src/process/mod.rs @@ -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 { let fds = wrap_io_error!( self.root.join("fd"),