eventmachine/eventmachine — Issue #294: How can I close EventMachine's side of an stdin pipe?
Author: blt
Created: 2012-01-25 17:10:27+00:00
State: open

This hangs, as you might expect:

```ruby
require 'eventmachine'

EM.run do

EM.system '/usr/bin/md5sum', proc{ |p| p.send_data("hashme") } do |stdout, status|
puts stdout
EM.stop
end

end
```

How do I send EOF to close up the stdin side of the pipe? I note that the [system documentation](http://eventmachine.rubyforge.org/EventMachine.html#M000329) cheats somewhat by feeding `exit` to `sh`.