LOGGER.warn("Sending kill -" + signal + " to the Unix process: " + pid);
try {
Process process = Runtime.getRuntime().exec("kill -" + signal + " " + pid);
// "Gob": a cryptic name for (e.g.) StreamGobbler - i.e. a stream
// consumer that reads and discards the stream
new Gob(process.getErrorStream()).start();
new Gob(process.getInputStream()).start();
int exit = waitFor(process);
if (exit == 0) {
killed = true;
LOGGER.debug("Successfully sent kill -" + signal + " to the Unix process: " + pid);
}