mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Michael Berger patch for process filtering
This commit is contained in:
parent
cfa8527eeb
commit
c4ba637e1a
4 changed files with 4 additions and 4 deletions
|
@ -219,7 +219,7 @@ public class UniversalProcessMiner extends Miner implements IUniversalProcessDat
|
|||
{
|
||||
try
|
||||
{
|
||||
HostProcessFilterImpl pfs = new HostProcessFilterImpl(subject.getSource(), true);
|
||||
HostProcessFilterImpl pfs = new HostProcessFilterImpl(subject.getSource());
|
||||
lookupProcesses(pfs, subject);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
|
@ -229,7 +229,7 @@ public class HostProcessFilterImpl implements IHostProcessFilter, Cloneable, ISy
|
|||
{
|
||||
if (_resolveVariables && username.equals("${user.id}"))
|
||||
{
|
||||
return System.getProperty("user.name");
|
||||
return ALL;
|
||||
}
|
||||
else return username;
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ public class UniversalAIXProcessHandler implements ProcessHandler, ISystemProces
|
|||
|
||||
// after the kill command is executed, the process might have changed
|
||||
// attributes, or might be gone, so requery
|
||||
HostProcessFilterImpl rpfs = new HostProcessFilterImpl(true);
|
||||
HostProcessFilterImpl rpfs = new HostProcessFilterImpl();
|
||||
rpfs.setPid("" + process.getPid());
|
||||
SortedSet results = lookupProcesses(rpfs);
|
||||
if (results == null || results.size() == 0) return null;
|
||||
|
|
|
@ -64,7 +64,7 @@ public class UniversalLinuxProcessHandler implements ProcessHandler, IServiceCon
|
|||
|
||||
// after the kill command is executed, the process might have changed
|
||||
// attributes, or might be gone, so requery
|
||||
HostProcessFilterImpl rpfs = new HostProcessFilterImpl(true);
|
||||
HostProcessFilterImpl rpfs = new HostProcessFilterImpl();
|
||||
rpfs.setPid("" + process.getPid());
|
||||
SortedSet results = lookupProcesses(rpfs);
|
||||
if (results == null || results.size() == 0) return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue