Changeset 608 for tea4cups

Show
Ignore:
Timestamp:
03/22/05 11:22:02 (20 years ago)
Author:
jerome
Message:

TEASTATUS wasn't available with "serialize: yes"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r604 r608  
    559559            if (btype == "tee") and self.RealBackend : 
    560560                self.logDebug("Launching original backend %s for printer %s" % (self.RealBackend, self.PrinterName)) 
    561                 exitcode = self.runOriginalBackend() 
     561                retcode = self.runOriginalBackend() 
     562                if os.WIFEXITED(retcode) : 
     563                    retcode = os.WEXITSTATUS(retcode) 
     564                os.environ["TEASTATUS"] = str(retcode) 
     565                exitcode = retcode 
    562566            for branch in branchlist : 
    563567                command = branches[branch]