summaryrefslogtreecommitdiffstats
path: root/lib/drb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-01 23:12:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-01 23:12:52 +0000
commit435ad02cc5cc93e5e94ce65158910709d2cc52f5 (patch)
tree5f0279f00fc3f6744ef2bcd90e5e95d2d2147409 /lib/drb
parenta9ccdcf68119e5d445aedecefd311b52c9b5e3c7 (diff)
downloadruby-435ad02cc5cc93e5e94ce65158910709d2cc52f5.tar.gz
ruby-435ad02cc5cc93e5e94ce65158910709d2cc52f5.tar.xz
ruby-435ad02cc5cc93e5e94ce65158910709d2cc52f5.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/extservm.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb
index be40aea9f..7af644a0b 100644
--- a/lib/drb/extservm.rb
+++ b/lib/drb/extservm.rb
@@ -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