title: Values of process.exitValue() in JAVA
body: <p>This question is about the values of <strong><em>process.exitValue()</em></strong>.</p>
  
  <p>If <strong><em>process.exitValue()</em></strong>=<em>0</em> its ok, if it's <em>-1</em> something is wrong, but if it's something else, what does it mean?
  For instance i am taking <strong>6</strong>. That is the code i use: </p>
  
  <pre><code>Process process = Runtime.getRuntime().exec(command);
  process.waitFor();  
  Integer result = process.exitValue();
  </code></pre>
  
  <p><strong>Edit:</strong> if process hangs, than <strong><em>process.exitValue()</em></strong> = 6 </p>