def METHOD_NAME(readfd, writefd):
    read = 0
    while True:
        data = os.read(readfd, 1024)
        read += len(data)
        if data and len(data) > 0:
            writefd.write(data)
            writefd.flush()
            return True
        else:
            return read > 0