From fd7a5001e04622f858a7a09cb68542779db819bc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 28 Aug 2005 06:22:10 +0000 Subject: [PATCH] no SIGINT on NetWare --- .../java/src/net/hyperic/sigar/shell/ShellIntHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/shell/ShellIntHandler.java b/bindings/java/src/net/hyperic/sigar/shell/ShellIntHandler.java index 836c9ae6..fb8a53b4 100644 --- a/bindings/java/src/net/hyperic/sigar/shell/ShellIntHandler.java +++ b/bindings/java/src/net/hyperic/sigar/shell/ShellIntHandler.java @@ -14,7 +14,12 @@ public class ShellIntHandler implements SignalHandler { handlerShell = shell; handlers = new Stack(); - Signal signal = new Signal("INT"); + Signal signal; + try { + signal = new Signal("INT"); + } catch (IllegalArgumentException e) { + return; //e.g NetWare + } try { Signal.handle(signal, new ShellIntHandler());