title: How do I open STDIN of process in Ruby?
body: <p>I have a set of tasks that I need to run from a Ruby script, however one particular task always waits for EOF on STDIN before quitting.</p>
  
  <p>Obviously this causes the script to hang while waiting for the child process to end.</p>
  
  <p>I have the process ID of the child process, but not a pipe or any kind of handle to it. How could I open a handle to the STDIN of a process to send EOF to it?</p>