'L{process.Process.signalProcess} doesn\'t mask C{OSError} exceptions if
the errno is different from C{errno.ESRCH}.'

def test_killErrorInKill(self):

    self.mockos.child = False
    self.mockos.waitChild = (0, 0)
    cmd = '/mock/ouch'
    p = TrivialProcessProtocol(None)
    proc = reactor.spawnProcess(p, cmd, ['ouch'], env=None, usePTY=False)
    self.mockos.raiseKill = OSError(errno.EINVAL, 'Invalid    signal')
    err = self.assertRaises(OSError, proc.signalProcess, 'KILL')
    self.assertEqual(err.errno, errno.EINVAL)
