IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32931 for trunk/ippToPsps


Ignore:
Timestamp:
Dec 13, 2011, 10:41:37 AM (15 years ago)
Author:
rhenders
Message:

arg to Popen close files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/odm.py

    r32801 r32931  
    22
    33import re
     4import os
     5import signal
    46import sys
    57import tempfile
     
    3335        p = Popen("../perl/checkOdmStatus.pl -b " + batch + " -f " + tempFile.name,
    3436                shell=True,
    35                 stdout=PIPE)
     37                stdout=PIPE,
     38                close_fds=True)
    3639        p.wait()
    37         
     40       
    3841        if p.returncode != 0:
    3942           self.logger.debugPair("ODM polling", "failed")
     
    4649        tempFile.close()
    4750        p.stdout.close()
     51
    4852
    4953        if not ret: self.logger.debugPair("Cannot read ODM file for batch", "%d" % batchID)
Note: See TracChangeset for help on using the changeset viewer.