delano / rye

Safe, parallel access to Unix shells from Ruby
http://delano.github.com/rye
MIT License
234 stars 32 forks source link

Ruby process hangs at exit after remote call to rbox.adduser #1

Closed delano closed 15 years ago

delano commented 15 years ago

This may happen with other commands but so far I've only noticed it with adduser with Net::SSH 2.0.11.

Workaround: be sure to explicitly call rbox.disconnect when done.

Repeat:

  1. Start an instance of ami-5394733a (ec2onrails/ec2onrails-v0_9_9_1-i386.manifest.xml).
  2. Create an rbox instance as root
  3. Call rbox.adduser(:delano) but don't call rbox.disconnect. It should hang.
delano commented 15 years ago

The hanging was the channel waiting for input in STDIN.

Workaround: use useradd instead.