The quick patch is easy:
diff -pub /usr/bin/reniced\~ /usr/bin/reniced
--- /usr/bin/reniced~ 2016-05-15 16:52:46.000000000 +0200
+++ /usr/bin/reniced 2020-06-17 13:11:28.446821729 +0200
@@ -432,8 +432,8 @@ sub read_processes()
my $line = <PS>; # skip first line
while ($line = <PS>) {
chomp $line;
- my $pid = substr($line, 0, 5 )+ 0;
- my $cmd = substr($line, 6 );
+ my $pid = substr($line, 0, 7 )+ 0;
+ my $cmd = substr($line, 8 );
push @proc, { PID => $pid, CMD => $cmd };
}
}
But it is dependont on the running kernel. The implementation is
fragile and should be made independent of the number of digits of the
process identifier
--
Francesco Potortì (ricercatore) Voice: +39.050.621.3058
ISTI - Area della ricerca CNR Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa Skype: wnlabisti
(gate 20, 1st floor, room C71) Web: http://fly.isti.cnr.it