'A partial implementation of signalProcess which can only handle TERM and
KILL signals.
- When a TERM signal is given, the dummy process will appear to exit
after L{DummyProcess._terminationDelay} seconds with exit code 0
- When a KILL signal is given, the dummy process will appear to exit
immediately with exit code 1.
@param signalID: The signal name or number to be issued to the process.
@type signalID: C{str}'

def signalProcess(self, signalID):

    params = {'TERM': (self._terminationDelay, 0), 'KILL': (0, 1)}
    if (self.pid is None):
        raise ProcessExitedAlready()
    if (signalID in params):
        (delay, status) = params[signalID]
        self._signalHandler = self._reactor.callLater(delay, self.processEnded, status)
