예제 #1
0
    def processEnded(self, reason):
        # Process ended override.
        # This override is to signal ready deferred if we never did, just in case.
        if self.ready_deferred and not self.ready_deferred.called:

            # must simulate processEnded callback value
            cba = { 'exitcode' : 0,
                    'outlines' : self.outlines,
                    'errlines' : self.errlines }

            self.ready_deferred.callback(cba)

        EnvOSProcess.processEnded(self, reason)
예제 #2
0
    def processEnded(self, reason):
        # Process ended override.
        # This override is to signal ready deferred if we never did, just in case.
        if self.ready_deferred and not self.ready_deferred.called:

            # must simulate processEnded callback value
            cba = {
                'exitcode': 0,
                'outlines': self.outlines,
                'errlines': self.errlines
            }

            self.ready_deferred.callback(cba)

        EnvOSProcess.processEnded(self, reason)
예제 #3
0
    def processEnded(self, reason):
        EnvOSProcess.processEnded(self, reason)

        # remove temp file if we created one earlier
        if self.temp_file != None:
            os.unlink(self.temp_file)
예제 #4
0
    def processEnded(self, reason):
        EnvOSProcess.processEnded(self, reason)

        # remove temp file if we created one earlier
        if self.temp_file != None:
            os.unlink(self.temp_file)