Skip to content
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

cukinia_process: failure with process name of length >15 #38

Closed
eloi29 opened this issue Jul 13, 2018 · 0 comments
Closed

cukinia_process: failure with process name of length >15 #38

eloi29 opened this issue Jul 13, 2018 · 0 comments

Comments

@eloi29
Copy link

eloi29 commented Jul 13, 2018

In /proc, process names max length is 15 (https://elixir.bootlin.com/linux/v4.8/source/include/linux/sched.h#L316)

so

cukinia_process abcdefghijklmnop

will fail if process abcdefghijklmnop is running while

cukinia_process abcdefghijklmno

will not.

eloi29 pushed a commit to eloi29/cukinia that referenced this issue Jul 23, 2018
In /proc, process name maximal length is 15. We need thus to cut the
argument of _cukinia_process if it exceeds 15 characters.

Closes savoirfairelinux#38
joufella pushed a commit to joufella/cukinia that referenced this issue Feb 21, 2019
In /proc, process name maximal length is 15. We need thus to cut the
argument of _cukinia_process if it exceeds 15 characters.

Closes savoirfairelinux#38

 [jo: refine test and surrounding comment]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant