Request a proc from the frysk monitoring tool; the interface is notified when the proc is found, or not. This should eliminate the polling of the entire proc tree, using refresh, by those small command line utilities.
2006-11-17 frysk-core/frysk/proc/CL * Host.java (FindProc): Added, new interface for finding processes. (requestFindProc): Added. (sendRefresh): Added. * TestFindProc.java: Added. * DummyHost.java (sendRefresh): Added. * LinuxHost.java (sendRefresh): Added. * HostState.java (running.handleRefresh): Added. (handleRefresh): Added.
Issues with optimizing interface: some functions that will use this require that the child processes be updated as well. I believe another interface will be needed, something along the lines of requestFindChildren.
Finished. November 22, 2006 frysk-core/frysk/proc/CL * TestRefresh.java (testRefreshZombie): Changed to use old requestRefreshXXX to find children. (testRefreshDaemon): Ditto. * LinuxHost.java: (sendRefresh): Optimized for FindProc.