3 # Change the nice level of a process, and possibly the IO scheduling
5 require './proc-lib.pl';
8 &error_setup(&text('renice_err', $in{pid}));
9 %pinfo = &process_info($in{pid});
12 &can_edit_process($pinfo{'user'}) || &error($text{'renice_ecannot'});
13 if ($error = &renice_proc($in{'pid'}, $in{nice})) {
18 if (defined($in{'sclass'})) {
19 $error = &os_set_scheduling_class(
20 $in{'pid'}, $in{'sclass'}, $in{'sprio'});
23 &webmin_log("renice", undef, undef, \%in);
24 &redirect("edit_proc.cgi?$in{pid}");