#NEWLINE# def __init__( self , reactor , proc , name , fileno , forceReadHack = False ) : #NEWLINE# #INDENT# '\n        Initialize, specifying a Process instance to connect to.\n        ' #NEWLINE# abstract . FileDescriptor . __init__ ( self , reactor ) #NEWLINE# fdesc . setNonBlocking ( proc ) #NEWLINE# self . proc = proc #NEWLINE# self . name = name #NEWLINE# self . fd = fileno #NEWLINE# if ( not stat . S_ISFIFO ( os . fstat ( self . fileno ( ) ) . st_mode ) ) : #NEWLINE# #INDENT# self . enableReadHack = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if forceReadHack : #NEWLINE# #INDENT# self . enableReadHack = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . read ( self . fileno ( ) , 0 ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# self . enableReadHack = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if self . enableReadHack : #NEWLINE# #INDENT# self . startReading ( )