class GfshSignalHandler extends AbstractSignalNotificationHandler implements SignalHandler {

  protected void handleDefault(final org.apache.geode.unsafe.internal.sun.misc.Signal sig,
      final ConsoleReader consoleReader)
      throws IOException {
    final Signal signal = Signal.valueOfName(sig.getName());
    switch (signal) {
      case SIGINT:
        if (consoleReader != null) {
          String prompt = consoleReader.getPrompt();
          consoleReader.resetPromptLine(prompt, "", -1);
        }
        break;
      default:
        final SignalHandler handler = getOriginalSignalHandler(signal);
        if (handler != null) {
          handler.handle(sig);
        }
    }
  }

  public  GfshSignalHandler();

}