startracker.py
def read(self):
        """
        Complete non-blocking read on file descriptor.

        of an arbitrary amount of data
        @return: Entire read string
        @rtype: C{string}
        """
        # need nonblocking for read
        fl = fcntl.fcntl(self.fd, fcntl.F_GETFL)
        fcntl.fcntl(self.fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
        data = b''
        try:
            while True:
                lastlen = len(data)
                data += os.read(self.fd, 1024)
                if len(data) == lastlen:
                    break
        except OSError as e:
            # error 11 means we have no more data to read
            if e.errno == 11:
                pass
            elif e.errno == 104:
                print("WARNING: ABNORMAL DISCONNECT", file=sys.stderr)
            else:
                raise
        return data

        Complete non-blocking read on file descriptor.

        of an arbitrary amount of data
        @return: Entire read string
        @rtype: C{string}
        
Complete non-blocking read on file descriptor.
of an arbitrary amount of data
Complete non - blocking read on file descriptor . of an arbitrary amount of data
def read(self):
        fl = fcntl.fcntl(self.fd, fcntl.F_GETFL)
        fcntl.fcntl(self.fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
        data = b''
        try:
            while True:
                lastlen = len(data)
                data += os.read(self.fd, 1024)
                if len(data) == lastlen:
                    break
        except OSError as e:
            if e.errno == 11:
                pass
            elif e.errno == 104:
                print("WARNING: ABNORMAL DISCONNECT", file=sys.stderr)
            else:
                raise
        return data
def read ( self ) : fl = fcntl . fcntl ( self . fd , fcntl . F_GETFL ) fcntl . fcntl ( self . fd , fcntl . F_SETFL , fl | os . O_NONBLOCK ) data = b'' try : while True : lastlen = len ( data ) data += os . read ( self . fd , 1024 ) if len ( data ) == lastlen : break except OSError as e : if e . errno == 11 : pass elif e . errno == 104 : print ( "WARNING: ABNORMAL DISCONNECT" , file = sys . stderr ) else : raise return data
Complete non-blocking read on file descriptor.
Complete non - blocking read on file descriptor .
"""
        Complete non-blocking read on file descriptor.

        of an arbitrary amount of data
        @return: Entire read string
        @rtype: C{string}
        """ # need nonblocking for read # error 11 means we have no more data to read
Entire read string
Entire read string
C{string}
self