Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switch swapn to fork/exec

  • Loading branch information...
commit 4a3439c4904a3217805a90bb518de7503e8acf46 1 parent 6138296
@quozd quozd authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 lib/rubygems/commands/open_command.rb
View
11 lib/rubygems/commands/open_command.rb
@@ -59,15 +59,12 @@ def open_gem name
open_editor(spec.full_gem_path)
end
- def open_editor path
+ def open_editor *args
Dir.chdir(path) do
- pid = spawn(@editor, path)
- Process.detach(pid)
+ pid = fork do
+ exec(*editor.split(/\s+/) + args)
+ end
end
- #unless Gem::Util.silent_system(@editor, path)
- # say "Unable to open #{@editor}"
- # terminate_interaction 1
- #end
end
def spec_for name
Please sign in to comment.
Something went wrong with that request. Please try again.