- First we need to grab the time the subprocess tarted running.
- Then we use subprocess to run any commands that where passed.
- We poll the process, grab the current time, then test to see if the time that has elapsed since start is greater then the specified timeout.
- If it is greater then the timeout we go ahead and start the kill process, windows first, since my Windows machine is down I am unable to test this code (bad!). The unix code however has been tested and works.
- In unix we kill the process then wait to make sure its doen before we carry on because if we don't it sorta defeats the purpose.
Wednesday, April 7, 2010
STOP RIGHT THERE!......subprocesses
So I spent a majority of my pony-build time during the month of February working on subprocess timeouts. Cause face it, we don't want those pesky little things running forever hogging up our precious system resources. Visit this link for some visuals on the following information breakdown.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment