# ``twisted`.`mail`.`alias`.`ProcessAliasProtocol``

class documentation

`class ProcessAliasProtocol(protocol.ProcessProtocol): (source)`

View In Hierarchy

A process protocol which errbacks a deferred when the associated process ends.

Method | `processEnded` | Call an errback.
Instance Variable | `onEnd` | If set, a deferred on which to errback when the process ends.

Inherited from `ProcessProtocol`:

Method | `childConnectionLost` | Called when a file descriptor associated with the child process is closed.
Method | `childDataReceived` | Called when data arrives from the child process.
Method | `errConnectionLost` | This will be called when stderr is closed.
Method | `errReceived` | Some data was received from stderr.
Method | `inConnectionLost` | This will be called when stdin is closed.
Method | `outConnectionLost` | This will be called when stdout is closed.
Method | `outReceived` | Some data was received from stdout.
Method | `processExited` | This will be called when the subprocess exits.

Inherited from `BaseProtocol` (via `ProcessProtocol`):

Method | `connectionMade` | Called when a connection is made.
Method | `makeConnection` | Make a connection to a transport and a server.
Instance Variable | `connected` | Undocumented
Instance Variable | `transport` | Undocumented

def processEnded(self, reason): (source)
from `twisted.internet.interfaces.IProcessProtocol`
overrides `twisted.internet.protocol.ProcessProtocol.processEnded`
Call an errback.

Parameters
reason:`Failure` | The reason the child process terminated.

onEnd: `None` or `Deferred` = (source)
If set, a deferred on which to errback when the process ends.