-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
OSProcess not showing process name #1364
Comments
The name and command line are two different things. I'm fine with using FYI the stat array is numeric and ignores the name, but we do have the string |
I'd like to work on this, I won't be able to start before sunday, but im confident to finish it on sunday aswell. |
Sounds good. I would like to cut a release on Sunday for the Windows processor bugfixes, but I'll hold off for this one as well! |
Fixed in #1368 |
Good work. Thanks
… On 18 Oct 2020, at 2:21 am, Daniel Widdis ***@***.***> wrote:
Fixed in #1368 <#1368>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1364 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOLUPLOBHQ5LIQOEMKPWSQLSLHAAVANCNFSM4SST7NHQ>.
|
The OSProcess fails to get the name of the running process if the running user doesn't have permission to the /proc/{pid}/cmdline
e.g. this process ( as reported by ps -ef )
root 6 2 0 Oct14 ? 00:00:00 [kworker/0:0H-kblockd]
returns en empty string for the name of the process
(LinusOSProcess.java:337) --> this.name = status.getOrDefault("Name", "");
The name is available in the /proc/{pid}/stat file which is already parsed into the statArray.
e.g.
6 (kworker/0:0H-kblockd) I 2 0 0 0 -1 69238880 0 0 0 0 0 0 0 0 0 -20 1 0 20 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 0 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0
It would be trivial to extract the process name from the stat file when the cmdline access returns null
The text was updated successfully, but these errors were encountered: