def _sync_command_error_squashed(arguments, logger):
    message = None
    log_arguments = b" ".join(arguments)
    try:
        process = Popen(arguments, stdout=PIPE, stderr=STDOUT)
        output = process.stdout.read()
        status = process.wait()
    except Exception as e:
        message = ZFS_ERROR(
            zfs_command=log_arguments, output=str(e), status=1)
    else:
        if status:
            message = ZFS_ERROR(
                zfs_command=log_arguments, output=output, status=status)
    if message is not None:
        message.write(logger)
Read all output from the PTY at `fd`, or nothing if no data to read.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/filesystems/zfs.py/_sync_command_error_squashed--crossover with--dataset/ETHPy150Open d11wtq/dockerpty/tests/util.py/read