Boost C++ Libraries: Ticket #13322: boost::process reports ERROR_INVALID_HANDLE instead of ERROR_FILE_NOT_FOUND when program cannot be found https://svn.boost.org/trac10/ticket/13322 <p> Under Windows, the following program outputs "Error is 6" (6 means ERROR_INVALID_HANDLE), while it should report "Error is 2" (2 means ERROR_FILE_NOT_FOUND). </p> <pre class="wiki"> #include &lt;boost/process.hpp&gt; #include &lt;iostream&gt; int main( int argc, char* argv[] ) { try { boost::process::child p( "foo" ); p.terminate(); } catch ( boost::process::process_error err ) { std::cout &lt;&lt; "Error is " &lt;&lt; err.code().value(); } return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13322 Trac 1.4.3 jpo38 <jean.porcherot@…> Mon, 04 Dec 2017 11:34:11 GMT version changed https://svn.boost.org/trac10/ticket/13322#comment:1 https://svn.boost.org/trac10/ticket/13322#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.63.0</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> Ticket John Maddock Thu, 10 May 2018 11:09:08 GMT component changed https://svn.boost.org/trac10/ticket/13322#comment:2 https://svn.boost.org/trac10/ticket/13322#comment:2 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">process</span> </li> </ul> Ticket