boostorg / boostorg/process

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

Open
#468 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.