1
0
Fork 0
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:
David McKnight 2006-06-30 00:24:26 +00:00
parent cfa8527eeb
commit c4ba637e1a
4 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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;
}

View file

@ -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;

View file

@ -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;