// too long ago, and hence assumes no chance of pid-wrapping-around.
ShellCommandExecutor shexec = null;
try {
String[] args = { "kill", "-0", pid.toString() };
shexec = new ShellCommandExecutor(args);
shexec.execute();
} catch (ExitCodeException ee) {
return false;
} catch (IOException ioe) {
LOG.warn("Error executing shell command "
+ Arrays.toString(shexec.getExecString()) + ioe);