Skip to content

Commit

Permalink
Try using the Ruby echo process everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Feb 11, 2014
1 parent 68b3a3f commit 2508541
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/childprocess.rb
Expand Up @@ -57,7 +57,7 @@ def windows?
end

def posix_spawn?
enabled = @posix_spawn || %w[1 true].include?(ENV['CHILDPROCESS_POSIX_SPAWN'])
enabled = @posix_spawn || ENV['CHILDPROCESS_POSIX_SPAWN']
return false unless enabled

require 'ffi'
Expand Down
8 changes: 4 additions & 4 deletions spec/spec_helper.rb
Expand Up @@ -104,16 +104,16 @@ def cat
end

def echo
if ChildProcess.os == :windows
# if ChildProcess.os == :windows
ruby(<<-CODE)
STDIN.sync = true
STDOUT.sync = true
puts "hello"
CODE
else
ChildProcess.build("echo", "hello")
end
# else
# ChildProcess.build("echo", "hello")
# end
end

def ruby(code)
Expand Down

0 comments on commit 2508541

Please sign in to comment.