public boolean isRunning(){
  if (process == null) {
    return false;
  }
  try {
    process.exitValue();
    return false;
  }
 catch (  IllegalThreadStateException e) {
  }
  return true;
}

public boolean isRunning ( ) { if ( process == null ) { return false ; } try { process . exitValue ( ) ; return false ; } catch ( IllegalThreadStateException e ) { } return true ; }
is our shell still running ?
