Revision 913326

Go back to digest for 25th January 2009

Bug Fixes in KDE Base

John Tapsell committed changes in /trunk/KDE/kdebase/workspace/libs/ksysguard/processcore/processes_linux_p.cpp:

Since the process name is truncated by the kernel, we need to look at the cmdline to work out the full process name.
However sometimes the cmdline contains nothing helpful (For some reason, for example, xorg's command line is just ":0").

So strip off any path on the cmdline, and check if the cmdline begins with the string of the process name.
If it does, assume that the cmdline contains the full processname, and use the stripped cmdline as the process name.

This does mean that the process name now contains the arguments.

File Changes

Modified 1 files
  • /trunk/KDE/kdebase/workspace/libs/ksysguard/processcore/processes_linux_p.cpp
1 files changed in total