Skip to content

Commit

Permalink
add status check to gen k mixture model
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jul 27, 2011
1 parent 0128ad5 commit 16decf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def generateOneText(infile, modelfile, reportfile):
f.writelines(lines)
f.close()

os.waitpid(subprocess.pid, 0)
(pid, status) = os.waitpid(subprocess.pid, 0)
if status != 0:
sys.exit('gen_k_mixture_model encounters error.')
#end processing

utils.sign_epoch(infilestatus, 'Generate')
Expand Down

0 comments on commit 16decf9

Please sign in to comment.