summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-07-25 17:42:42 +0200
committerMarkus Roberts <Markus@reality.com>2010-07-25 22:24:50 -0700
commit7d42f77b83a7597a879a0fc2080c18b7c76c6fc3 (patch)
treee8d0dbbe61539faf014d19db01f0c96bda55cfd6 /lib
parent760e418d254a8d2198d2c6eb466d783a5930ef47 (diff)
downloadpuppet-7d42f77b83a7597a879a0fc2080c18b7c76c6fc3.tar.gz
puppet-7d42f77b83a7597a879a0fc2080c18b7c76c6fc3.tar.xz
puppet-7d42f77b83a7597a879a0fc2080c18b7c76c6fc3.zip
JRuby doesn't implement Process.maxgroups
So let's not call it :) Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util/monkey_patches.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/util/monkey_patches.rb b/lib/puppet/util/monkey_patches.rb
index e035afd9f..9664ff310 100644
--- a/lib/puppet/util/monkey_patches.rb
+++ b/lib/puppet/util/monkey_patches.rb
@@ -1,4 +1,7 @@
-Process.maxgroups = 1024
+
+unless defined? JRUBY_VERSION
+ Process.maxgroups = 1024
+end
module RDoc
def self.caller(skip=nil)