summaryrefslogtreecommitdiffstats
path: root/src/pvs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pvs.cpp')
-rwxr-xr-xsrc/pvs.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pvs.cpp b/src/pvs.cpp
index 18b3570..8017d8b 100755
--- a/src/pvs.cpp
+++ b/src/pvs.cpp
@@ -940,6 +940,9 @@ QString PVS::getConfigValue(QString key)
void PVS::showProc()
{
+ QString settings = getConfigValue("RemoteProcess/filter");
+ QStringList filter = settings.split(" ");
+
//look at procfs
QDir procfs("/proc");
QStringList procList = procfs.entryList();
@@ -985,8 +988,11 @@ void PVS::showProc()
}
if (write)
{
- if ((name.startsWith("pvs")) || (name.startsWith("dbus")))
+ for (int i=0;i<filter.size();i++)
+ {
+ if (name == (filter.at(i)))
write = false;
+ }
}
if (write) //if process belongs to user (and not to PVS) we go on
{