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