From 0af0a9d75a523dc3d431d9760489028f6d4bb35c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 29 Aug 2006 00:30:27 +0000 Subject: [PATCH] catch NotImplementException around getProcFd --- bindings/java/src/org/hyperic/sigar/cmd/ProcFileInfo.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/cmd/ProcFileInfo.java b/bindings/java/src/org/hyperic/sigar/cmd/ProcFileInfo.java index 390a2e5f..6c13e084 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/ProcFileInfo.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/ProcFileInfo.java @@ -19,6 +19,7 @@ package org.hyperic.sigar.cmd; import org.hyperic.sigar.SigarException; +import org.hyperic.sigar.SigarNotImplementedException; import org.hyperic.sigar.SigarPermissionDeniedException; import org.hyperic.sigar.ProcFd; import org.hyperic.sigar.ProcExe; @@ -64,11 +65,12 @@ public class ProcFileInfo extends SigarCommandBase { } public void output(long pid) throws SigarException { - ProcFd fd = sigar.getProcFd(pid); - println("pid=" + pid); - println("open file descriptors=" + fd.getTotal()); + try { + ProcFd fd = sigar.getProcFd(pid); + println("open file descriptors=" + fd.getTotal()); + } catch (SigarNotImplementedException e) {} ProcExe exe = sigar.getProcExe(pid); String name = exe.getName();