cpulimit
cpulimit copied to clipboard
Wrong logic in matching the process name
https://github.com/opsengine/cpulimit/blob/f4d2682804931e7aea02a869137344bb5452a3cd/src/process_group.c#L64
"strncmp" is not a correct way.
For example, if we use "cpulimit -e abc -l 30", then the process with the name "abcd" may be limited.
The correct way is to use "strcmp".