Bug 119286 - Filtered view which does not show daemons
Summary: Filtered view which does not show daemons
Status: RESOLVED FIXED
Alias: None
Product: ksysguard
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-31 01:25 UTC by jg
Modified: 2007-11-11 12:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jg 2005-12-31 01:25:10 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Ubuntu Packages
OS:                Linux

Hello

Would it be possible to have a display mode which does not display daemons please?  At present I can select "User Processes" but that still includes hpiod, hald dcopserver and even ksysguardd etc etc. Would be really handy to be able to just see my own processes, such as konsole, bash, make, gcc etc
Comment 1 John Tapsell 2006-05-17 04:44:47 UTC
I am planning on an additional tab which shows only processes with X window titles.  Would this be sufficient?
Comment 2 jg 2006-05-19 01:06:23 UTC
Hi,

Thanks for replying.

I think processes with X window titles probably would eliminate gcc, bash and make from the display.. I'd find it really useful to be able to just see the user processes which weren't daemons.

Being able to include/excluded by X window titles would be a good addition too, because i could then eliminate konsole from the displayed processes, when I was only interested in shell commands like bash, make, gcc etc.

Kind regards
JG
Comment 3 John Tapsell 2006-11-23 12:55:53 UTC
Hmm, how can I distinguish between a gcc running as a daemon, and as a process?  I guess by looking at the controlling terminal.  Not sure how this would work into the gui.
Comment 4 jg 2006-11-28 01:54:38 UTC
Hi John,

That sounds like a good idea. By looking at a process's controlling terminal, would that give an indication of if it was running in the background?
Are there any sort of process flags we could look at to see if it is a daemon?

Is it possible to see what standard file descriptors are open? daemons all have STDIN, STDOUT, STDERR closed... perhaps we could look for those signs and show the process as a daemon?

Also Daemons are typically do not have any existing parent process, they run just under init and they have the current working directory set to / according to this page too:
http://en.wikipedia.org/wiki/Daemon_(computer_software)

Jon
Comment 5 John Tapsell 2007-11-11 12:15:28 UTC
SVN commit 735312 by johnflux:

* Due to popular request (well, someone told me that someone else wanted it), I added a pid column, hidden by default.

* Because the number of columns changed, saved heading data is no longer valid, so save a 'header data version number' in the config files, to keep track of that.

* Add a "Programs Only" option.  This only shows processes that have a GUI, or are attached to a tty.  This works better than I expected :)


BUG:119286





 M  +7 -1      ksysguard/gui/SensorDisplayLib/ProcessController.cc  
 M  +9 -2      libs/ksysguard/processui/ProcessFilter.cc  
 M  +1 -1      libs/ksysguard/processui/ProcessFilter.h  
 M  +12 -0     libs/ksysguard/processui/ProcessModel.cc  
 M  +7 -2      libs/ksysguard/processui/ProcessModel.h  
 M  +5 -0      libs/ksysguard/processui/ProcessWidgetUI.ui  
 M  +46 -5     libs/ksysguard/processui/ksysguardprocesslist.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=735312