Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent zombie process for `gem open`

The open command did not detach the editor process which meant it could
be zombied.  This should not be a big deal because the command exits
afterward but it doesn't hurt to clean up after ourselves.

See @4a3439c
  • Loading branch information...
commit 8a8700ae0052a33f834102376aaca1dc280eb29e 1 parent 1b92cc6
@drbrain drbrain authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/rubygems/commands/open_command.rb
View
2  lib/rubygems/commands/open_command.rb
@@ -66,6 +66,8 @@ def open_editor path
args = (@editor.split(/\s+/) + [path]).join(' ')
exec(args)
end
+
+ Process.detach pid
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.