def dbus_lenFD(self, fd):
        """
        Returns the byte count after reading till EOF.
        """
        f = os.fdopen(fd, 'rb')
        result = len(f.read())
        f.close()
        return result