Sha256: ccd73cfafd799f1857f0ba70419f556b4975db5a3221d6b4d82b9034b7fabbbd

Contents?: true

Size: 372 Bytes

Versions: 32

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

require_relative '../../puppet/util'

module Puppet::Util::Limits
  # @api private
  def setpriority(priority)
    return unless priority

    Process.setpriority(0, Process.pid, priority)
  rescue Errno::EACCES, NotImplementedError
    Puppet.warning(_("Failed to set process priority to '%{priority}'") % { priority: priority })
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/util/limits.rb
puppet-8.10.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.10.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.10.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.9.0 lib/puppet/util/limits.rb
puppet-8.9.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.9.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.9.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.8.1 lib/puppet/util/limits.rb
puppet-8.8.1-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.8.1-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.8.1-universal-darwin lib/puppet/util/limits.rb
puppet-8.7.0 lib/puppet/util/limits.rb
puppet-8.7.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.7.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.7.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.6.0 lib/puppet/util/limits.rb
puppet-8.6.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.6.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.6.0-universal-darwin lib/puppet/util/limits.rb