Skip to content

Commit

Permalink
Merge pull request #36 from iain/remove-autoload
Browse files Browse the repository at this point in the history
Removed Autoload to solve threading issues
  • Loading branch information
jarib committed Jul 9, 2012
2 parents 6730cce + 9c7504d commit b12c091
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/childprocess.rb
Expand Up @@ -4,9 +4,6 @@
require "fcntl"

module ChildProcess
autoload :Unix, 'childprocess/unix'
autoload :Windows, 'childprocess/windows'
autoload :JRuby, 'childprocess/jruby'

@posix_spawn = false

Expand Down Expand Up @@ -172,3 +169,7 @@ def warn_once(msg)
end # ChildProcess

require 'jruby' if ChildProcess.jruby?

require 'childprocess/unix' if ChildProcess.unix?
require 'childprocess/windows' if ChildProcess.windows?
require 'childprocess/jruby' if ChildProcess.jruby?

0 comments on commit b12c091

Please sign in to comment.