diff options
Diffstat (limited to 'numbench/benchchildren.py')
-rw-r--r-- | numbench/benchchildren.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numbench/benchchildren.py b/numbench/benchchildren.py index 1686639..9f27979 100644 --- a/numbench/benchchildren.py +++ b/numbench/benchchildren.py @@ -15,16 +15,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -try: - copy = procs - del copy -except: + +if 'procs' not in locals(): procs = [] - + def terminate(): for p in procs: if p.poll() is None: p.kill() def append(proc): - procs.append(proc)
\ No newline at end of file + procs.append(proc) |