Class SignalUtils

java.lang.Object
io.deephaven.util.signals.SignalUtils

public class SignalUtils
extends Object
  • Constructor Details

    • SignalUtils

      public SignalUtils()
  • Method Details

    • sendSignalWithBinKill

      public static int sendSignalWithBinKill​(int processId, String signalName) throws IOException
      Use /bin/kill to send a signal by name.
      Parameters:
      processId - The process ID to send the signal to
      signalName - The name of the signal to send
      Returns:
      The exit value of the child process.
      Throws:
      IOException
    • loadNative

      public static void loadNative()
      Ensure that libraries have been loaded, before using sendSignalNative(...).
    • sendSignalNative

      public static int sendSignalNative​(int processId, int signalNumber)
      Use native code to send a signal by number.
      Parameters:
      processId - The process ID to send the signal to
      signalNumber - The signal number to send
      Returns:
      The return value of kill(2).