mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
platform names. * lib/resolv.rb (Resolv::Hosts::DefaultFileName), (Resolv::DNS::Config.default_config_hash): tries win32/resolv on mswin64 too. * lib/rubygems/specification.rb (Gem::Specification#ruby_code): aded mswin64. * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command): spawn is better to start a process in background. * ext/extmk.rb: uses FNM_SYSCASE. * instruby.rb: installs win32.h on mswin64 platform. [ruby-core:21722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7b5c603b4
commit
2478f1caaf
8 changed files with 30 additions and 16 deletions
|
@ -79,11 +79,7 @@ module DRb
|
|||
@servers[name] = false
|
||||
end
|
||||
uri = @uri || DRb.uri
|
||||
if RUBY_PLATFORM =~ /mswin32/ && /NT/ =~ ENV["OS"]
|
||||
system(%Q'cmd /c start "ruby" /b #{command} #{uri} #{name}')
|
||||
else
|
||||
system("#{command} #{uri} #{name} &")
|
||||
end
|
||||
spawn("#{command} #{uri} #{name}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue