-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow prefer_regex and avoid_regex to match cmdline #11
Comments
Thank you for this question! I plan to improve support regex matching in future.
|
One of the problems is that cmdlines sometimes contain null byte. |
That NUL is used to separate the arguments. I guess it would be perfectly ok to just replace all NULs with SPCs (can't think of a case right now where I need to differentiate between a program called |
@schumar |
@schumar Done. Welcome to testing! |
matching with UID also implemented |
I'd rather have
nohang
kill a single Firefox tab instead of the whole browser. Sadly, both processes have the samename
, so I can't useprefer_regex
for that.If
nohang
would give me some way to also match the cmdline-params (can get those from/proc/$pid/cmdline
), I would be able to give processes with an-childID
"preferred" treatment :)Not sure if this should require extra config-options (
enable_cmdline
,prefer_cmdline_regex
,...) are just be included in the standard behaviour.The text was updated successfully, but these errors were encountered: