'If the C{os.read} call on the status pipe raises an B{EINTR} error, the
parent child retries to read.'

def test_successInParentEINTR(self):

    read = []
    def raisingRead(fd, size):
        read.append((fd, size))
        if (len(read) == 1):
            raise IOError(errno.EINTR)
        return '0'
    self.mockos.read = raisingRead
    self.mockos.child = False
    with AlternateReactor(FakeDaemonizingReactor()):
        self.assertRaises(SystemError, self.runner.postApplication)
    self.assertEqual(self.mockos.actions, [('chdir', '.'), ('umask', 63), ('fork', True), ('exit', 0), ('unlink', 'twistd.pid')])
    self.assertEqual(self.mockos.closed, [(-1)])
    self.assertEqual([((-1), 100), ((-1), 100)], read)
