diff options
author | Fabian Schillinger | 2010-11-05 11:14:22 +0100 |
---|---|---|
committer | Fabian Schillinger | 2010-11-05 11:14:22 +0100 |
commit | ded15ea687403e165914b746e948bce2cc78bc57 (patch) | |
tree | 351c2d2afddcfc47ae442b14e75ae98fc523db61 /src/pvs.cpp | |
parent | Merge branch 'master' of openslx.org:pvs (diff) | |
download | pvs-ded15ea687403e165914b746e948bce2cc78bc57.tar.gz pvs-ded15ea687403e165914b746e948bce2cc78bc57.tar.xz pvs-ded15ea687403e165914b746e948bce2cc78bc57.zip |
Process start/stop/view functionality
Cleanup
Diffstat (limited to 'src/pvs.cpp')
-rwxr-xr-x | src/pvs.cpp | 8 |
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 { |