From 05b6f8793c6d5f17d1cb413e2884f1fb0f367ad8 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 10 May 2024 14:47:15 +0100 Subject: [PATCH] refactor, subprocess: Remove unused `Popen::child_created_` data member --- src/util/subprocess.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/util/subprocess.h b/src/util/subprocess.h index 37b77c1c56e..ad49bac54bb 100644 --- a/src/util/subprocess.h +++ b/src/util/subprocess.h @@ -1027,7 +1027,6 @@ private: std::vector vargs_; std::vector cargv_; - bool child_created_ = false; // Pid of the child process int child_pid_ = -1; @@ -1177,8 +1176,6 @@ inline void Popen::execute_process() noexcept(false) throw OSError("fork failed", errno); } - child_created_ = true; - if (child_pid_ == 0) { // Close descriptors belonging to parent