cpulimit is left waiting for PID
Bug #200115 reported by
Fernando Miguel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cpulimit (Ubuntu) |
Fix Released
|
Low
|
gregor herrmann |
Bug Description
Binary package hint: cpulimit
a user can lunch cpulimit with cpulimit -l LIMIT -e PROGRAM or cpulimit -l LIMIT -p PID
if -z is issue then cpulimit will exit once the program exits too.
but if the user uses the PID, then cpulimit will remain running waiting for that same PID, and as far as I know, PID are never reused, and even if it was, it wouldn't have been for the same process.
So, cpulimit should always FORCE -z (-z, --lazy exit if there is no suitable target process, or if it dies) when using -p ( -p, --pid=N pid of the process).
Changed in cpulimit: | |
importance: | Undecided → Low |
tags: | added: patch |
To post a comment you must log in.
Hi,
thanks for your bug report!
I'm the maintainer of cpulimit in Debian; I've talked with the upstream author about this issue and he said he'll fix it in his development branch soon.
Once the new package is in Debian it will get to Ubuntu soon afterwards.
Cheers,
gregor