Skip to content
Browse files

More accurate ChildProcess.os

  • Loading branch information...
1 parent 8309ba7 commit 839d0f3ade79fe07bae55bb663baab8569bb5b40 @jarib committed Jan 15, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/childprocess.rb
View
8 lib/childprocess.rb
@@ -11,7 +11,7 @@ module ChildProcess
class << self
def new(*args)
case os
- when :macosx, :linux, :unix, :cygwin
+ when :macosx, :linux, :solaris, :bsd, :cygwin
if posix_spawn?
Unix::PosixSpawnProcess.new(args)
elsif jruby?
@@ -101,8 +101,10 @@ def os
:windows
when /cygwin/
:cygwin
- when /solaris|bsd/
- :unix
+ when /solaris/
+ :solaris
+ when /bsd/
+ :bsd
else
raise Error, "unknown os: #{host_os.inspect}"
end

0 comments on commit 839d0f3

Please sign in to comment.
Something went wrong with that request. Please try again.