public class BgProcessKiller extends Object
Modifier and Type | Method and Description |
---|---|
static void |
disarm() |
static void |
init() |
static void |
interruptBgProcesses()
Sends SIGINT to all background processes
|
static com.zaxxer.nuprocess.NuProcess |
startProcess(com.zaxxer.nuprocess.NuProcessBuilder pb)
Use this method instead of
NuProcessBuilder.start() in order to properly synchronize with
signal handling. |
static Process |
startProcess(ProcessBuilder pb)
Use this method instead of
ProcessBuilder.start() in order to properly synchronize with
signal handling. |
public static void init()
public static void disarm()
public static void interruptBgProcesses()
public static Process startProcess(ProcessBuilder pb) throws IOException
ProcessBuilder.start()
in order to properly synchronize with
signal handling.IOException
public static com.zaxxer.nuprocess.NuProcess startProcess(com.zaxxer.nuprocess.NuProcessBuilder pb)
NuProcessBuilder.start()
in order to properly synchronize with
signal handling.