title: Sending a signal to a Process from Java 9
body: <p>I hear in java 9 they did a lot of work updating the Process API. Is there now a cleaner way to send a signal to a <code>Process</code> spawned by Java? The signals are used as a simple way to trigger actions in the process.</p>
  
  <p>Before I had to use reflection to get a <code>pid</code> and then use <code>Runtime#exec</code> to send the <code>kill</code> command. I assume you still need to use <code>Runtime#exec</code> because signal may be OS dependent, but I'm curious if anyone knows a better way than this!</p>
  
  <pre><code>Process p = Runtime.getRuntime().exec(...);
  ...
  Runtime.getRuntime().exec("kill -SIGUSR1 " + p.getPid());
  </code></pre>