Skip to content

io_context.run() block indefinitely if child redirects it's output to pipe #468

Open
@o01eg

Description

@o01eg

I have the code already using boost.process v1 to manage child processes:

https://github.com/freeorion/freeorion/blob/a72caab5816e7401247ed0ea2399efe47ad6702a/util/Process.cpp#L215-L220

If I add boost::process::async_pipe and redirects boost::process::std_out and boost::process::std_err here it freezes on io_context.run().

I've tried to use Boost.Process V2 but it doesn't help https://github.com/o01eg/freeorion/tree/boost-process-v2-capture

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