Skip to content

Commit 462736c

Browse files
committed
add comment for NumFDsWithContext
1 parent cbc32af commit 462736c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

process/process_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ func (p *Process) NumCtxSwitchesWithContext(ctx context.Context) (*NumCtxSwitche
549549
return nil, common.ErrNotImplementedError
550550
}
551551

552+
// NumFDsWithContext returns the number of handles for a process on Windows,
553+
// not the number of file descriptors (FDs).
552554
func (p *Process) NumFDsWithContext(ctx context.Context) (int32, error) {
553555
handle, err := windows.OpenProcess(processQueryInformation, false, uint32(p.Pid))
554556
if err != nil {

0 commit comments

Comments
 (0)