summaryrefslogtreecommitdiff
path: root/lib/drb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/extservm.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb
index b649c9c006..7066f84c65 100644
--- a/lib/drb/extservm.rb
+++ b/lib/drb/extservm.rb
@@ -86,8 +86,8 @@ module DRb
@servers[name] = false
end
uri = @uri || DRb.uri
- if RUBY_PLATFORM =~ /mswin32/
- system("cmd /c start /b #{command} #{uri} #{name}")
+ if RUBY_PLATFORM =~ /mswin32/ && /NT/ =~ ENV["OS"]
+ system(%Q'cmd /c start "ruby" /b #{command} #{uri} #{name}')
else
system("#{command} #{uri} #{name} &")
end