summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/fixtures/setpriority.rb
blob: cf22d85b126a5156593ee8b38b274668d650d048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
case ARGV[0]
when "process"
  which = Process::PRIO_PROCESS
when "group"
  Process.setpgrp
  which = Process::PRIO_PGRP
end

priority = Process.getpriority(which, 0)
p priority
p Process.setpriority(which, 0, priority + 1)
p Process.getpriority(which, 0)
git/commit/eval_error.c?h=ruby_3_1&id=8603c5934a4e613cdb07b04a1ce86fb1f21fdbd5'>* eval_error.c (rb_print_undef_str): new function to raisenobu 2011-06-18* internal.h: declare more internal functions.akr 2010-12-12* eval_error.c: parenthesize macro arguments.akr 2010-06-21* eval_error.c (error_print): clear raised_flag while error-printingwanabe