boostorg / boostorg/process

`boost::process::child`: `std::error_code` versus `exit_code()`

Open
#308 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

Most of the `boost::process::child` API provides `std::error_code` values, but it's only possible to get the final process exit code as `int`. What is the reason for this dichotomy?

Is there any overlap, or is it that the `std::error_code` is only for reporting errors that occur during Boost/C++/OS processing, while `exit_code()` is only for reporting the exit code returned by a child process that exited of its own accord?

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.