Merge 50729c0609 into merged_master (Bitcoin PR bitcoin/bitcoin#29910)

This commit is contained in:
ivanlele 2026-02-18 15:37:43 +00:00
commit dcd431d845
No known key found for this signature in database
4 changed files with 9 additions and 7 deletions

View file

@ -335,7 +335,7 @@ BITCOIN_CORE_H = \
util/sock.h \
util/spanparsing.h \
util/string.h \
util/subprocess.hpp \
util/subprocess.h \
util/syserror.h \
util/task_runner.h \
util/thread.h \

View file

@ -12,7 +12,7 @@
#include <univalue.h>
#ifdef ENABLE_EXTERNAL_SIGNER
#include <util/subprocess.hpp>
#include <util/subprocess.h>
#endif // ENABLE_EXTERNAL_SIGNER
UniValue RunCommandParseJSON(const std::string& str_command, const std::string& str_std_in)

View file

@ -11,7 +11,7 @@
#include <univalue.h>
#ifdef ENABLE_EXTERNAL_SIGNER
#include <util/subprocess.hpp>
#include <util/subprocess.h>
#endif // ENABLE_EXTERNAL_SIGNER
#include <boost/test/unit_test.hpp>

View file

@ -33,8 +33,10 @@ Documentation for C++ subprocessing library.
@version 1.0.0
*/
#ifndef SUBPROCESS_HPP
#define SUBPROCESS_HPP
#ifndef BITCOIN_UTIL_SUBPROCESS_H
#define BITCOIN_UTIL_SUBPROCESS_H
#include <util/syserror.h>
#include <algorithm>
#include <cassert>
@ -150,7 +152,7 @@ class OSError: public std::runtime_error
{
public:
OSError(const std::string& err_msg, int err_code):
std::runtime_error( err_msg + ": " + std::strerror(err_code) )
std::runtime_error(err_msg + ": " + SysErrorString(err_code))
{}
};
@ -1609,4 +1611,4 @@ namespace detail {
}
#endif // SUBPROCESS_HPP
#endif // BITCOIN_UTIL_SUBPROCESS_H