Skip to content

Docs: Non-crossplatform assertion in stdio example #550

Description

@ixSci

In the stdio.cpp example there is the following assertion: assert(!ec || (ec == asio::error::eof)); after reading from the pipe. On Windows it would fire because ec would be asio::error::broken_pipe. As far as I understand, if the process ended the writing part of the pipe has been closed so the error won't be eof. See MSDN and also an ASIO issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions