1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 17:45: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 try
{ {
HostProcessFilterImpl pfs = new HostProcessFilterImpl(subject.getSource(), true); HostProcessFilterImpl pfs = new HostProcessFilterImpl(subject.getSource());
lookupProcesses(pfs, subject); lookupProcesses(pfs, subject);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View file

@ -229,7 +229,7 @@ public class HostProcessFilterImpl implements IHostProcessFilter, Cloneable, ISy
{ {
if (_resolveVariables && username.equals("${user.id}")) if (_resolveVariables && username.equals("${user.id}"))
{ {
return System.getProperty("user.name"); return ALL;
} }
else return username; 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 // after the kill command is executed, the process might have changed
// attributes, or might be gone, so requery // attributes, or might be gone, so requery
HostProcessFilterImpl rpfs = new HostProcessFilterImpl(true); HostProcessFilterImpl rpfs = new HostProcessFilterImpl();
rpfs.setPid("" + process.getPid()); rpfs.setPid("" + process.getPid());
SortedSet results = lookupProcesses(rpfs); SortedSet results = lookupProcesses(rpfs);
if (results == null || results.size() == 0) return null; 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 // after the kill command is executed, the process might have changed
// attributes, or might be gone, so requery // attributes, or might be gone, so requery
HostProcessFilterImpl rpfs = new HostProcessFilterImpl(true); HostProcessFilterImpl rpfs = new HostProcessFilterImpl();
rpfs.setPid("" + process.getPid()); rpfs.setPid("" + process.getPid());
SortedSet results = lookupProcesses(rpfs); SortedSet results = lookupProcesses(rpfs);
if (results == null || results.size() == 0) return null; if (results == null || results.size() == 0) return null;