Show
Ignore:
Timestamp:
10/27/06 23:19:25 (17 years ago)
Author:
jerome
Message:

Improved error detection.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pdlparser.py

    r429 r432  
    6767            # Psyco is installed, tell it to compile 
    6868            # the CPU intensive methods : PCL and PCLXL 
    69             # parsing will greatly benefit from this,  
    70             # for PostScript and PDF the difference is 
    71             # barely noticeable since they are already 
    72             # almost optimal, and much more speedy anyway. 
     69            # parsing will greatly benefit from this. 
    7370            psyco.bind(self.getJobSize) 
    7471             
     
    111108                     
    112109                try : 
    113                     child.wait() 
     110                    status = child.wait() 
    114111                except OSError :     
    115112                    error = True 
     113                else :     
     114                    if os.WIFEXITED(status) : 
     115                        if os.WEXITSTATUS(status) : 
     116                            error = True 
     117                    else :         
     118                        error = True 
    116119                     
    117120                if not os.path.exists(fname) :