Sha256: 8252eaf2be0f528b5ef0ddcbff434d65cd9681b259227da088caf4dc11d624f5

Contents?: true

Size: 371 Bytes

Versions: 20

Compression:

Stored size: 371 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

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/util/limits.rb
puppet-8.3.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.3.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.3.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.3.1 lib/puppet/util/limits.rb
puppet-8.3.1-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.3.1-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.3.1-universal-darwin lib/puppet/util/limits.rb
puppet-8.2.0 lib/puppet/util/limits.rb
puppet-8.2.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.2.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.2.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.1.0 lib/puppet/util/limits.rb
puppet-8.1.0-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.1.0-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.1.0-universal-darwin lib/puppet/util/limits.rb
puppet-8.0.1 lib/puppet/util/limits.rb
puppet-8.0.1-x86-mingw32 lib/puppet/util/limits.rb
puppet-8.0.1-x64-mingw32 lib/puppet/util/limits.rb
puppet-8.0.1-universal-darwin lib/puppet/util/limits.rb