From 889c8c0bd58906fffbfa787c1a8da8dc7af02ff6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Sat, 7 Feb 2015 16:12:14 +0300 Subject: [PATCH] enable Process.NumFds() for linux --- process/process_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process/process_linux.go b/process/process_linux.go index b7bd4e5..f7127ce 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -132,7 +132,8 @@ func (p *Process) NumCtxSwitches() (*NumCtxSwitchesStat, error) { return p.numCtxSwitches, nil } func (p *Process) NumFDs() (int32, error) { - return 0, common.NotImplementedError + numFds, _, err := p.fillFromfd() + return numFds, err } func (p *Process) NumThreads() (int32, error) { return p.numThreads, nil