'Initialize, specifying a Process instance to connect to.'

def __init__(self, reactor, proc, name, fileno, forceReadHack=False):

    abstract.FileDescriptor.__init__(self, reactor)
    fdesc.setNonBlocking(fileno)
    self.proc = proc
    self.name = name
    self.fd = fileno
    if (not stat.S_ISFIFO(os.fstat(self.fileno()).st_mode)):
        self.enableReadHack = False
    elif forceReadHack:
        self.enableReadHack = True
    else:
        try:
            os.read(self.fileno(), 0)
        except OSError:
            self.enableReadHack = True
    if self.enableReadHack:
        self.startReading()
