diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-05-10 14:42:31 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-05-10 14:42:31 +0100 |
commit | 24b53fc84af301fff592e06723b980e29aa68289 (patch) | |
tree | f0b37b5703d25f4c16be38f4faf202c33ad11959 /src | |
parent | 98dd4e712efaa2b77cb168426756879c6405c3f4 (diff) | |
download | bitcoin-24b53fc84af301fff592e06723b980e29aa68289.tar.xz |
refactor, subprocess: Remove `Popen::pid()`
Diffstat (limited to 'src')
-rw-r--r-- | src/util/subprocess.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/subprocess.h b/src/util/subprocess.h index af408b31d4..09b386a37a 100644 --- a/src/util/subprocess.h +++ b/src/util/subprocess.h @@ -902,7 +902,6 @@ private: * Command provided in a single string. * wait() - Wait for the child to exit. * retcode() - The return code of the exited child. - * pid() - PID of the spawned child. * poll() - Check the status of the running child. * send(...) - Send input to the input channel of the child. * communicate(...) - Get the output/error from the child and close the channels @@ -956,8 +955,6 @@ public: execute_process(); } - int pid() const noexcept { return child_pid_; } - int retcode() const noexcept { return retcode_; } int wait() noexcept(false); @@ -1068,7 +1065,7 @@ inline int Popen::wait() noexcept(false) return 0; #else int ret, status; - std::tie(ret, status) = util::wait_for_child_exit(pid()); + std::tie(ret, status) = util::wait_for_child_exit(child_pid_); if (ret == -1) { if (errno != ECHILD) throw OSError("waitpid failed", errno); return 0; |