Subject: [Boost-bugs] [Boost C++ Libraries] #13322: boost::process reports ERROR_INVALID_HANDLE instead of ERROR_FILE_NOT_FOUND when program cannot be found
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-04 11:33:58
#13322: boost::process reports ERROR_INVALID_HANDLE instead of ERROR_FILE_NOT_FOUND
when program cannot be found
--------------------------------------+---------------------
Reporter: jpo38 <jean.porcherot@â¦> | Owner: (none)
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.63.0 | Severity: Problem
Keywords: |
--------------------------------------+---------------------
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).
{{{
#include <boost/process.hpp>
#include <iostream>
int main( int argc, char* argv[] )
{
try
{
boost::process::child p( "foo" );
p.terminate();
}
catch ( boost::process::process_error err )
{
std::cout << "Error is " << err.code().value();
}
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13322> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-12-04 11:43:19 UTC